From c92d25752cb8ce8d301cfa31b7ee9fa62c688b50 Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Sat, 27 Sep 2025 23:30:37 +0200 Subject: [PATCH] Some serious layout changes --- CLAUDE.md | 1269 ++--------------- app/kgpz.go | 2 +- controllers/filter_controller.go | 75 + controllers/kategorie_controller.go | 101 +- viewmodels/category_view.go | 291 ++++ viewmodels/place_view.go | 11 +- views/assets/scripts.js | 204 ++- views/assets/style.css | 2 +- views/routes/akteure/autoren/body.gohtml | 9 +- views/routes/akteure/letter/body.gohtml | 39 +- .../components/_scrollspy_layout.gohtml | 6 +- .../components/_unified_piece_entry.gohtml | 12 +- views/routes/filter/body.gohtml | 56 +- views/routes/kategorie/body.gohtml | 0 views/routes/kategorie/head.gohtml | 0 views/routes/kategorie/list/body.gohtml | 101 ++ views/routes/kategorie/list/head.gohtml | 3 + views/routes/kategorie/pieces/body.gohtml | 153 ++ views/routes/kategorie/pieces/head.gohtml | 3 + .../routes/ort/components/_place_card.gohtml | 2 +- views/routes/ort/overview/body.gohtml | 88 +- views/transform/generic-filter.js | 147 ++ views/transform/main.js | 1 + views/transform/search.js | 1053 +++++++------- 24 files changed, 1832 insertions(+), 1796 deletions(-) create mode 100644 viewmodels/category_view.go delete mode 100644 views/routes/kategorie/body.gohtml delete mode 100644 views/routes/kategorie/head.gohtml create mode 100644 views/routes/kategorie/list/body.gohtml create mode 100644 views/routes/kategorie/list/head.gohtml create mode 100644 views/routes/kategorie/pieces/body.gohtml create mode 100644 views/routes/kategorie/pieces/head.gohtml create mode 100644 views/transform/generic-filter.js diff --git a/CLAUDE.md b/CLAUDE.md index 9233499..2664c9c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,55 +19,12 @@ The application follows a modular Go architecture: - **Templating**: Custom template engine with Go template integration and helper functions - **Views**: Frontend assets and templates in `views/` directory -### Key Components - -1. **Data Sources**: XML files from Git repository containing historical newspaper metadata -2. **Search**: Full-text search powered by Bleve search engine -3. **External Integrations**: GND (Gemeinsame Normdatei) for person metadata, Geonames for place data -4. **Template System**: Custom engine supporting layouts and partials with embedded filesystem and helper functions - ## Development Commands -### Go Backend -```bash -# Run the application in development mode -go run kgpz_web.go - -# Build the application -go build -o kgpz_web kgpz_web.go - -# Run tests -go test ./helpers/xsdtime/ - -# Format code -go fmt ./... - -# Check for issues -go vet ./... -``` +The user runs a dev server in the background rebuilding assets & go code on file changes **Note**: The project maintainer handles all Go compilation, testing, and error reporting. Claude Code should not run Go build commands or tests - any Go-related errors will be reported directly by the maintainer. -### Frontend Assets (from views/ directory) -```bash -cd views/ - -# Development server with hot reloading -npm run dev - -# Build production assets -npm run build - -# Build CSS with Tailwind -npm run tailwind - -# Build CSS with PostCSS -npm run css - -# Preview built assets -npm run preview -``` - ## Configuration The application uses JSON configuration files: @@ -81,21 +38,82 @@ Key configuration options: - `debug`: Enable debug mode and logging - `watch`: Enable file watching for template hot-reloading -## Data Flow +## Route Details -1. **Startup**: Application clones/pulls Git repository with XML data -2. **Parsing**: XML files parsed into structured models (agents, places, works, issues) -3. **Enrichment**: External APIs (GND, Geonames) enrich metadata -4. **Indexing**: Full-text search index built using Bleve -5. **Serving**: HTTP server serves templated content with HTMX interactions +### Issues/Ausgabe (`/:year/:issue/:page?`) +- **Controller**: `controllers/ausgabe_controller.go` +- **URL Structure**: `/1771/42` or `/1771/42/166` (with page) +- **Components**: `views/routes/ausgabe/body.gohtml`, `head.gohtml`, `components/_inhaltsverzeichnis.gohtml`, `_newspaper_layout.gohtml`, `_bilder.gohtml` +- **JavaScript**: `issue.js` (newspaper layout, page navigation, modals, citation generation) +- **Template**: `views/routes/ausgabe/` -## Key Dependencies +### Agents/Akteure (`/akteure/:letter?/:id?`) +- **Controller**: `controllers/akteur_controller.go` +- **URL Structure**: `/akteure/a`, `/akteure/person-123`, `/akteure/autoren` +- **Components**: `views/routes/components/_akteur.gohtml`, `_akteur_header.gohtml`, `_akteur_werke.gohtml`, `_akteur_beitraege.gohtml` +- **JavaScript**: `akteure.js` (AkteureScrollspy web component) +- **Template**: `views/routes/akteure/` -- **Web Framework**: Fiber (high-performance HTTP framework) -- **Search**: Bleve (full-text search engine) -- **Git Operations**: go-git (Git repository operations) -- **Frontend**: HTMX + Tailwind CSS for progressive enhancement -- **Build Tools**: Vite for asset bundling, PostCSS for CSS processing +### Places/Orte (`/ort/:id?`) +- **Controller**: `controllers/ort_controller.go` +- **URL Structure**: `/ort/` (overview), `/ort/place-123` (detail) +- **Components**: `views/routes/ort/overview/`, `ort/detail/`, `components/_place_card.gohtml`, `_place_header.gohtml`, `_place_pieces.gohtml` +- **JavaScript**: `places.js` (PlacesFilter web component for search filtering) +- **Template**: `views/routes/ort/` + +### Multi-Issue Pieces (`/beitrag/:id`) +- **Controller**: `controllers/piece_controller.go` +- **URL Structure**: `/beitrag/piece-abc123` +- **Components**: `views/routes/piece/body.gohtml`, `head.gohtml`, `components/_piece_inhaltsverzeichnis.gohtml`, `_piece_sequential_layout.gohtml` +- **JavaScript**: `main.js` (highlighting system, shared with issue view) +- **Template**: `views/routes/piece/` + +### Search (`/search`) +- **Controller**: `controllers/search_controller.go` +- **URL Structure**: `/search?q=term` +- **Components**: `views/routes/search/body.gohtml`, `head.gohtml` +- **JavaScript**: `main.js` (basic HTMX handling) +- **Template**: `views/routes/search/` + +### Quickfilter (`/filter`) +- **Controller**: `controllers/filter_controller.go` +- **URL Structure**: `/filter` (HTMX endpoint) +- **Components**: `views/routes/filter/body.gohtml` +- **JavaScript**: `main.js` (toggle functionality in `_menu.gohtml`) +- **Template**: `views/routes/filter/` + +### Page Jump (`/jump/:year?/:page?`) +- **Controller**: `controllers/page_jump_controller.go` +- **URL Structure**: `/jump` (form), `/jump/1771/166` (direct) +- **Components**: Integrated into filter system +- **JavaScript**: `main.js` (auto-scroll functionality) +- **Template**: Part of filter system + +### Year Overview (`/jahrgang/:year`) +- **Controller**: `controllers/year_controller.go` +- **URL Structure**: `/jahrgang/1771` +- **Components**: `views/routes/year/body.gohtml`, `head.gohtml` +- **JavaScript**: `main.js` (basic navigation) +- **Template**: `views/routes/year/` + +### Categories (`/kategorie/:id`) +- **Controller**: `controllers/kategorie_controller.go` +- **URL Structure**: `/kategorie/category-name` +- **Components**: `views/routes/kategorie/body.gohtml`, `head.gohtml` +- **JavaScript**: `main.js` (basic functionality) +- **Template**: `views/routes/kategorie/` + +### Citation (`/zitation`) +- **Controller**: `controllers/zitation_controller.go` +- **URL Structure**: `/zitation` +- **Components**: `views/routes/zitation/body.gohtml`, `head.gohtml` +- **JavaScript**: `main.js` (citation link management) +- **Template**: `views/routes/zitation/` + +### Static Pages +- **Datenschutz**: `views/routes/datenschutz/` (Privacy policy) +- **Kontakt**: `views/routes/kontakt/` (Contact) +- **Edition**: `views/routes/edition/` (Edition info) ## Template Structure @@ -104,143 +122,78 @@ Templates are embedded in the binary: - **Routes**: `views/routes/` - Page-specific templates - **Assets**: `views/assets/` - Compiled CSS and static files -The template system supports nested layouts and automatic reloading in development mode when `watch: true` is enabled. - -## Views Directory Structure - -The `views/` directory contains all frontend templates, assets, and build configuration: - -### Directory Layout -``` -views/ -├── layouts/ # Base templates and layouts -│ ├── components/ # Shared layout components (_header, _footer, _menu) -│ └── default/ # Default layout (root.gohtml) -├── routes/ # Page-specific templates -│ ├── akteure/ # Agents/People pages (body.gohtml, head.gohtml) -│ ├── autoren/ # Authors-only pages (body.gohtml, head.gohtml) -│ ├── ausgabe/ # Issue pages with components -│ │ └── components/ # Issue-specific components (_inhaltsverzeichnis, _bilder, etc.) -│ ├── components/ # Shared route components -│ │ ├── _akteur.gohtml # Main agent component (uses sub-components) -│ │ ├── _akteur_header.gohtml # Agent name, dates, professions, links -│ │ ├── _akteur_werke.gohtml # Works section with categorized pieces -│ │ ├── _akteur_beitraege.gohtml # Contributions/pieces with grouping -│ │ └── _unified_piece_entry.gohtml # Universal piece display component -│ ├── datenschutz/ # Privacy policy -│ ├── edition/ # Edition pages -│ ├── filter/ # Quickfilter system -│ ├── kategorie/ # Category pages -│ ├── kontakt/ # Contact pages -│ ├── ort/ # Places pages with overview/detail split -│ │ ├── overview/ # Places grid view (body.gohtml, head.gohtml) -│ │ ├── detail/ # Individual place view (body.gohtml, head.gohtml) -│ │ └── components/ # Place-specific components (_place_card, _place_header, _place_pieces, _back_navigation) -│ ├── piece/ # Multi-issue piece pages -│ │ └── components/ # Piece-specific components (_piece_inhaltsverzeichnis, _piece_sequential_layout) -│ ├── search/ # Search pages -│ └── zitation/ # Citation pages -├── assets/ # Compiled output assets -│ ├── css/ # Compiled CSS files -│ ├── js/ # JavaScript libraries and compiled scripts -│ ├── fonts/ # Font files -│ ├── logo/ # Logo and favicon files -│ └── xslt/ # XSLT transformation files -├── public/ # Static public assets -├── transform/ # Source files for build process -│ ├── main.js # Main JavaScript entry point -│ └── site.css # Source CSS with Tailwind directives -└── node_modules/ # NPM dependencies -``` - -### Template System - -**Layout Templates** (`layouts/`): -- `default/root.gohtml`: Base HTML structure with head, HTMX, Alpine.js setup -- `components/_header.gohtml`: Site header with navigation -- `components/_footer.gohtml`: Site footer -- `components/_menu.gohtml`: Main navigation menu - -**Route Templates** (`routes/`): -Each route has dedicated `head.gohtml` and `body.gohtml` files following Go template conventions: -- Pages use German naming: `akteure` (agents), `ausgabe` (issues), `ort` (places), etc. -- Component partials prefixed with `_` (e.g., `_akteur.gohtml`, `_inhaltsverzeichnis.gohtml`) -- HTMX-powered interactions for dynamic content loading - -**Template Features**: -- Go template syntax with custom functions from `templating/engine.go` -- Block template inheritance system -- HTMX integration for progressive enhancement -- Conditional development/production asset loading -- Template helper functions for UI components (PageIcon, BeilagePageIcon) -- Pre-processed view models to minimize template logic +### Shared Components +- `views/routes/components/_unified_piece_entry.gohtml` - Universal piece display component +- `views/layouts/components/_header.gohtml`, `_footer.gohtml`, `_menu.gohtml` - Layout components ### Frontend Assets **JavaScript Stack**: -- **HTMX**: Core interactivity and AJAX requests -- **Web Components**: Custom elements for self-contained functionality (replaced Alpine.js) -- **Modular Architecture**: ES6 modules with focused responsibilities -- **Event-Driven Architecture**: Custom events for inter-component communication +- **HTMX**: Core interactivity and AJAX requests - **IMPORTANT**: Content swapping requires careful event handling +- **Web Components**: Custom elements for self-contained functionality with proper lifecycle management - **Build Tool**: Vite for module bundling and development server +- **Module Architecture**: ES6 modules with focused responsibilities for different page types **CSS Stack**: - **Tailwind CSS v4**: Utility-first CSS framework - **PostCSS**: CSS processing pipeline - **RemixIcon**: Icon font library -- **Custom Fonts**: Typography setup in `assets/css/fonts.css` -**JavaScript Module Structure**: -- **`main.js`**: Entry point, HTMX event handling, citation link management, page backdrop styling -- **`akteure.js`**: AkteureScrollspy web component for agents/authors navigation +**HTMX Considerations**: +- Links swap content dynamically, requiring proper cleanup of event listeners +- Web components must handle HTMX page swaps with cleanup and re-initialization +- JavaScript modules need to be HTMX-safe with proper memory management +- Event delegation and component lifecycle management are critical + +**JavaScript Modules** (`views/transform/`): +- **`main.js`**: Entry point, imports all modules, HTMX event handling, citation link highlighting - **`issue.js`**: Newspaper layout, page navigation, modal functions, citation generation -- **`single-page-viewer.js`**: SinglePageViewer web component for image modal display -- **`scroll-to-top.js`**: ScrollToTopButton web component for floating scroll button +- **`akteure.js`**: AkteureScrollspy web component for agents/authors navigation - **`places.js`**: PlacesFilter web component for real-time place search filtering +- **`single-page-viewer.js`**: Modal component for full-screen page viewing +- **`scroll-to-top.js`**: ScrollToTopButton web component for floating scroll button +- **`inhaltsverzeichnis-scrollspy.js`**: Table of contents highlighting system +- **`search.js`**: Search functionality and result handling +- **`error-modal.js`**: Error display modal component +- **`helpers.js`**: Utility functions and shared helpers -**Build Process**: -- **Source**: `transform/main.js` and `transform/site.css` -- **Output**: Compiled to `assets/scripts.js` and `assets/style.css` -- **Vite Config**: Production build targeting ES modules -- **PostCSS Config**: Tailwind CSS processing +## Citation System -### Asset Loading Strategy +**Universal Citation Format**: Used throughout the application for consistent newspaper references -The root template conditionally loads assets based on environment: -- Development: Uses dev favicon, enables hot reloading -- Production: Optimized assets, production favicon -- Module imports: ES6 modules with `setup()` function from compiled scripts -- Deferred loading: HTMX and Alpine.js loaded with `defer` attribute +**Citation Template** (`views/routes/components/_citation.gohtml`): +- **Format**: `DD.MM.YYYY/ISSUE, S. PAGE-PAGE` (or `Beil. PAGE` for supplements) +- **Input**: `xmlmodels.IssueRef` with date, issue number, page range, optional supplement +- **Output**: Clickable links to specific pages with current page highlighting +- **Auto-detection**: Automatically highlights citations referring to the currently viewed page -## Template Architecture & Best Practices +**Example Citations**: +- Regular pages: `1.2.1765/9, S. 33-34` +- Single page: `15.3.1771/42, S. 166` +- Supplement: `1.5.1766/15, Beil. 2-3` -### View Model Philosophy -The application follows a **logic-in-Go, presentation-in-templates** approach: +**Usage**: `{{ template "_citation" $issueRef }}` - Used in table of contents, agent pages, place listings, search results -- **View Models** (`viewmodels/issue_view.go`): Pre-process all business logic, calculations, and data transformations -- **Templates**: Focus purely on presentation using pre-calculated data -- **Helper Functions** (`templating/engine.go`): Reusable UI components and formatting +## Template Structure & Format -### Key View Model Features -- **Pre-calculated metadata**: Page icons, grid layouts, visibility flags -- **Grouped data structures**: Complex relationships resolved in Go -- **Template helpers**: `PageIcon()`, `BeilagePageIcon()` for consistent UI components +**Standard Template Pattern**: Almost all views follow a consistent two-file structure: -### Template Organization -**Ausgabe (Issue) Templates**: -- `body.gohtml`: Main layout structure with conditional rendering -- `components/_inhaltsverzeichnis.gohtml`: Table of contents with pre-processed page data -- `components/_newspaper_layout.gohtml`: Newspaper page grid with absolute positioning -- `components/_bilder.gohtml`: Simple image gallery fallback -- Interactive highlighting system with intersection observer and scroll detection +### Standard Files +- **`head.gohtml`**: Page-specific `` and meta information +- **`body.gohtml`**: Main page content using layout system -### JavaScript Integration -- **Progressive Enhancement**: HTMX + Alpine.js for interactivity -- **Real-time Highlighting**: Intersection Observer API with scroll fallback (issue view) -- **Scrollspy Navigation**: Multi-item highlighting system for agents/authors pages -- **Page Navigation**: Smooth scrolling with visibility detection -- **HTMX Integration**: Automatic cleanup and re-initialization on page swaps -- **Responsive Design**: Mobile-optimized with proper touch interactions +### Layout System +- **Base Layout**: `views/layouts/default/root.gohtml` provides HTML structure +- **Shared Components**: Header, footer, navigation in `views/layouts/components/` +- **Responsive Design**: Mobile-first with Tailwind CSS classes +- **Three-column pattern**: Many views use sidebar + content + navigation layout + +### Template Features +- **Go Template Syntax**: Standard Go templates with custom helper functions +- **HTMX Integration**: `hx-*` attributes for dynamic content loading +- **Component Reuse**: Shared components like `_unified_piece_entry.gohtml` for consistency +- **Conditional Rendering**: Based on data availability and user context +- **Typography**: Serif fonts for names/titles, sans-serif for UI, appropriate text sizing ## Development Workflow @@ -250,976 +203,4 @@ The application follows a **logic-in-Go, presentation-in-templates** approach: 4. JavaScript changes: Edit `transform/main.js`, run `npm run build` 5. Full rebuild: `go build` for backend, `npm run build` for frontend assets -### Adding New Template Logic -1. **First**: Add business logic to view models in Go -2. **Second**: Create reusable template helper functions if needed -3. **Last**: Use pre-processed data in templates for presentation only - -## Multi-Issue Piece View (/beitrag/) - -The application supports viewing pieces/articles that span multiple issues through a dedicated piece view interface that aggregates content chronologically. - -### URL Structure & Routing - -**URL Pattern**: `/beitrag/:id` where ID is the piece's XML ID -- **Example**: `/beitrag/piece-abc123` (piece with XML ID "piece-abc123") -- **Route Definition**: `PIECE_URL = "/beitrag/:id"` in `app/kgpz.go` -- **Controller**: `controllers.GetPiece(k.Library)` handles piece lookup and rendering - -### Architecture & Components - -**Controller** (`controllers/piece_controller.go`): -- Looks up pieces directly by XML ID -- Handles piece aggregation across multiple issues -- Returns 404 for invalid IDs or non-existent pieces - -**View Model** (`viewmodels/piece_view.go`): -- `PieceVM` struct aggregates data from multiple issues -- `AllIssueRefs []xmlmodels.IssueRef` - chronologically ordered issue references -- `AllPages []PiecePageEntry` - sequential page data with image paths -- Pre-processes page icons, grid layouts, and visibility flags -- Resolves image paths using registry system - -**Template System** (`views/routes/piece/`): -- `body.gohtml` - Two-column layout with Inhaltsverzeichnis and sequential pages -- `head.gohtml` - Page metadata and title generation -- `components/_piece_inhaltsverzeichnis.gohtml` - Table of contents with piece content -- `components/_piece_sequential_layout.gohtml` - Chronological page display - -### Key Features - -**Multi-Issue Aggregation**: -- Pieces spanning multiple issues are unified in a single view -- Chronological ordering preserves reading sequence across issue boundaries -- Issue context (year/number) displayed with each page for reference - -**Component Reuse**: -- Reuses `_inhaltsverzeichnis_eintrag` template for consistent content display -- Integrates with existing `_newspaper_layout` components for single-page viewer -- Shares highlighting system and navigation patterns with issue view - -**Sequential Layout**: -- Two-column responsive design: Inhaltsverzeichnis (1/3) + Page Layout (2/3) -- Left-aligned page indicators with format: `[icon] YYYY Nr. XX, PageNum` -- No grid constraints - simple sequential flow for multi-issue reading - -**Highlighting System Integration**: -- Uses same intersection observer system as issue view (`main.js`) -- Page links in Inhaltsverzeichnis turn red when corresponding page is visible -- Page indicators above images also highlight during scroll -- Automatic scroll-to-highlighted functionality - -### Template Integration - -**Helper Functions** (`templating/engine.go`): -- `GetPieceURL(year, issueNum, page int) string` - generates piece URLs -- Reuses existing `PageIcon()` for consistent icon display -- `getImagePathFromRegistry()` for proper image path resolution - -**Data Attributes for JavaScript**: -- `data-page-container` on page containers for scroll detection -- `data-page-number` on Inhaltsverzeichnis links for highlighting -- `newspaper-page-container` class for intersection observer -- `inhalts-entry` class for hover and highlighting behavior - -**Responsive Behavior**: -- Mobile: Single column with collapsible Inhaltsverzeichnis -- Desktop: Fixed two-column layout with sticky table of contents -- Single-page viewer integration with proper navigation buttons - -### Usage Examples - -**Linking to Pieces**: -```gohtml -<a href="{{ GetPieceURL $piece.ID }}"> - gesamten beitrag anzeigen -</a> -``` - -**Page Navigation in Inhaltsverzeichnis**: -```gohtml -<a href="/{{ $pageEntry.IssueYear }}/{{ $pageEntry.IssueNumber }}/{{ $pageEntry.PageNumber }}" - class="page-number-inhalts" data-page-number="{{ $pageEntry.PageNumber }}"> - {{ $issueRef.When.Day }}.{{ $issueRef.When.Month }}.{{ $issueRef.When.Year }} [Nr. {{ $pageEntry.IssueNumber }}], {{ $pageEntry.PageNumber }} -</a> -``` - -### Error Handling - -**Invalid IDs**: Returns 404 for non-existent piece IDs -**Missing Pieces**: Returns 404 when piece lookup fails in XML data -**Missing Images**: Graceful fallback with "Keine Bilder verfügbar" message -**Cross-Issue Navigation**: Handles pieces spanning non-consecutive issues - -## Direct Page Navigation System - -The application provides a direct page navigation system that allows users to jump directly to any page by specifying year and page number, regardless of which issue contains that page. - -### URL Structure - -**New URL Format**: All page links now use path parameters instead of hash fragments: -- **Before**: `/1771/42#page-166` -- **After**: `/1771/42/166` - -This change applies to all page links throughout the application, including: -- Page sharing/citation links -- Inhaltsverzeichnis page navigation -- Single page viewer navigation - -### Page Jump Interface - -**Location**: Available on year overview pages (`/jahrgang/:year`) - -**Features**: -- **Year Selection**: Dropdown with all available years (1764-1779) -- **Page Input**: Numeric input with validation -- **HTMX Integration**: Real-time error feedback without page reload -- **Auto-redirect**: Successful lookups redirect to `/year/issue/page` - -**URL Patterns**: -- **Form Submission**: `POST /jump` with form data -- **Direct URL**: `GET /jump/:year/:page` (redirects to found issue) - -### Error Handling - -**Comprehensive Validation**: -- **Invalid Year**: Years outside 1764-1779 range -- **Invalid Page**: Non-numeric or negative page numbers -- **Page Not Found**: Page doesn't exist in any issue of specified year -- **Form Preservation**: Error responses maintain user input for correction - -**HTMX Error Responses**: -- Form replaced with error version showing red borders and error messages -- Specific error targeting (year field vs. page field) -- Graceful degradation with clear user feedback - -### Auto-Scroll Implementation - -**URL-Based Navigation**: -- Pages accessed via `/year/issue/page` auto-scroll to target page -- JavaScript detects path-based page numbers (not hash fragments) -- Smooth scrolling with proper timing for layout initialization -- Automatic highlighting in Inhaltsverzeichnis - -**Technical Implementation**: -```javascript -// Auto-scroll on page load if targetPage is specified -const pathParts = window.location.pathname.split('/'); -if (pathParts.length >= 4 && !isNaN(pathParts[pathParts.length - 1])) { - const pageNumber = pathParts[pathParts.length - 1]; - // Scroll to page container and highlight -} -``` - -### Controller Architecture - -**Page Jump Controller** (`controllers/page_jump_controller.go`): -- `FindIssueByYearAndPage()` - Lookup function for issue containing specific page -- `GetPageJump()` - Handles direct URL navigation (`/jump/:year/:page`) -- `GetPageJumpForm()` - Handles form submissions (`POST /jump`) -- Error rendering with HTML form generation - -**Issue Controller Updates** (`controllers/ausgabe_controller.go`): -- Enhanced to handle optional page parameter in `/:year/:issue/:page?` -- Page validation against issue page ranges -- Target page passed to template for auto-scroll JavaScript - -### Link Generation Updates - -**JavaScript Functions** (`views/transform/main.js`): -- `copyPagePermalink()` - Generates `/year/issue/page` URLs -- `generatePageCitation()` - Uses new URL format for citations -- `scrollToPageFromURL()` - URL-based navigation (replaces hash-based) - -**Template Integration**: -- Page links updated throughout templates to use new URL format -- Maintains backward compatibility for beilage/supplement pages (still uses hash) -- HTMX navigation preserved with new URL structure - -### Usage Examples - -**Direct Page Access**: -``` -http://127.0.0.1:8080/1771/42/166 # Direct link to page 166 -``` - -**Page Jump Form**: -```html -<form hx-post="/jump" hx-swap="outerHTML"> - <select name="year">...</select> - <input type="number" name="page" /> - <button type="submit">Zur Seite springen</button> -</form> -``` - -**Link Generation**: -```javascript -// New format for regular pages -const pageUrl = `/${year}/${issue}/${pageNumber}`; -// Old format still used for beilage pages -const beilageUrl = `${window.location.pathname}#beilage-1-page-${pageNumber}`; -``` - -## Quickfilter System (/filter) - -The application provides a universal quickfilter system accessible from any page via a header button, offering quick access to common navigation and filtering tools. - -### Architecture & Integration - -**Header Integration** (`views/layouts/components/_header.gohtml` & `_menu.gohtml`): -- **Universal Access**: Schnellfilter button available in every page header -- **Expandable Design**: Header expands downwards to show filter content -- **HTMX-Powered**: Dynamic loading of filter content without page refresh -- **Seamless UI**: Integrates with existing header styling and layout - -**Controller** (`controllers/filter_controller.go`): -- `GetQuickFilter(kgpz *xmlmodels.Library)` - Renders filter interface -- Uses "clear" layout for partial HTML fragments -- Dynamically extracts available years from issue data - -**Template System** (`views/routes/filter/body.gohtml`): -- Clean, responsive filter interface with modern styling -- Expandable structure for future filter options -- Integrates existing functionality (page jump) in unified interface - -### Current Features - -**Page Jump Integration**: -- **Moved from year pages**: "Direkt zu Seite springen" functionality relocated from `/jahrgang/` pages to header -- **Universal availability**: Now accessible from any page in the application -- **Same functionality**: Year dropdown, page input, error handling, HTMX validation -- **Consistent UX**: Maintains all existing behavior and error feedback - -**UI Components**: -- **Toggle Button**: Filter icon in header with hover effects and visual feedback -- **Expandable Container**: Header expands naturally to accommodate filter content -- **Responsive Design**: Mobile-friendly with proper touch interactions -- **Click-Outside Close**: Filter closes when clicking outside the container - -### Technical Implementation - -**URL Structure**: -- **Filter Endpoint**: `GET /filter` - Renders filter interface using clear layout -- **Route Configuration**: `FILTER_URL = "/filter"` defined in `app/kgpz.go` - -**JavaScript Functionality** (`views/layouts/components/_menu.gohtml`): -```javascript -// Toggle filter visibility -function toggleFilter() { - const filterContainer = document.getElementById('filter-container'); - const filterButton = document.getElementById('filter-toggle'); - - if (filterContainer.classList.contains('hidden')) { - filterContainer.classList.remove('hidden'); - filterButton.classList.add('bg-slate-200'); - } else { - filterContainer.classList.add('hidden'); - filterButton.classList.remove('bg-slate-200'); - } -} - -// Close filter when clicking outside -document.addEventListener('click', function(event) { - // Automatic close functionality -}); -``` - -**HTMX Integration**: -```html -<button id="filter-toggle" - hx-get="/filter" - hx-target="#filter-container > div" - hx-swap="innerHTML" - onclick="toggleFilter()"> - <i class="ri-filter-2-line"></i> Schnellfilter -</button> -``` - -### Layout System - -**Header Expansion**: -- **Natural Flow**: Filter container expands header downwards using normal document flow -- **Content Displacement**: Page content moves down automatically when filter is open -- **Visual Consistency**: Uses same `bg-slate-50` background as header -- **Centered Content**: Filter content centered within expanded header area - -**Template Structure**: -```html -<!-- Header container expands naturally --> -<div id="filter-container" class="mt-6 hidden"> - <div class="flex justify-center"> - <!-- Filter content loaded here via HTMX --> - </div> -</div> -``` - -### Extensible Design - -**Future Enhancement Ready**: -- Modular template structure allows easy addition of new filter options -- Controller can be extended to handle additional filter types -- Template includes placeholder section for "Weitere Filter" -- Architecture supports complex filtering without performance impact - -**Data Processing**: -- Efficient year extraction from issue data using same pattern as `year_view.go` -- Sorted year list generation with proper deduplication -- Ready for additional data aggregation (categories, agents, places) - -### Usage Examples - -**Template Integration**: -```gohtml -<!-- Filter automatically available in all pages via header --> -<!-- No additional template includes needed --> -``` - -**Controller Extension**: -```go -// Example of extending filter data -data := fiber.Map{ - "AvailableYears": availableYears, - "Categories": categories, // Future enhancement - "TopAgents": topAgents, // Future enhancement -} -``` - -### Migration Impact - -**Improved User Experience**: -- **Reduced Page Clutter**: Removed page jump form from year overview pages -- **Universal Access**: Page jumping now available from anywhere in the application -- **Cleaner Year Pages**: `/jahrgang/` pages now focus purely on year navigation -- **Consistent Interface**: Single location for all quick navigation tools - -## Agents/Authors View System (/akteure/ and /autoren/) - -The application provides sophisticated person and organization browsing through dual view systems with advanced navigation and filtering capabilities. - -### Dual View Architecture - -**General Agents View** (`/akteure/`): -- Displays all persons and organizations mentioned in the newspaper -- Supports letter-based navigation (A-Z) -- Individual person pages with detailed information -- Two-column layout with scrollspy navigation on large screens - -**Authors-Only View** (`/autoren/`): -- Filtered view showing only people who authored pieces (Beiträge) -- Single-page display of all authors regardless of starting letter -- No alphabet navigation (all authors shown together) -- Same advanced layout and scrollspy functionality - -### URL Structure & Navigation - -**URL Patterns**: -- `/akteure/` - All persons overview -- `/akteure/a` - Persons starting with letter "A" -- `/akteure/{id}` - Individual person page -- `/akteure/autoren` - Authors-only filtered view - -**Toggle Navigation**: -- Checkbox interface: "Nur Autoren anzeigen" switches between views -- HTMX-powered transitions with URL history management -- Unchecking returns to `/akteure/a` (letter A starting point) - -### Template Architecture & Components - -**Modular Template System** (`views/routes/components/`): -- `_akteur.gohtml` - Main component using sub-components -- `_akteur_header.gohtml` - Name, life dates, professions, external links -- `_akteur_werke.gohtml` - Works section with categorized pieces -- `_akteur_beitraege.gohtml` - Contributions/pieces with grouping - -**Component Benefits**: -- Reusable across different view contexts -- Maintainable separation of concerns -- Consistent styling and behavior -- Easy customization for specific views (authors vs. full agents) - -### Advanced Scrollspy Navigation - -**Full-Height Sidebar** (2XL+ screens only): -- Fixed 320px width with full viewport height -- Sticky positioning that follows scroll -- Complete name list with smooth scrolling navigation -- Automatic cleanup on HTMX page transitions - -**Multi-Item Highlighting**: -- Highlights ALL currently visible authors simultaneously -- Red left border indicating visible items (matches issue view pattern) -- Header visibility detection (name, life data, professions must be fully visible) -- Real-time updates during scroll with 50ms debouncing - -**Visual Features**: -- Larger text (`text-base`) for better readability -- Closer spacing (`py-1`) for more names visible -- Smooth transitions and hover effects -- Blue background highlighting for active items - -### Controller Architecture - -**Unified Controller** (`controllers/akteur_controller.go`): -- Handles both general agents and authors-only views -- Special routing for "autoren" parameter -- Template path switching based on view type -- Letter-based filtering and ID lookup - -**View Models** (`viewmodels/agent_view.go`): -- `AgentsView()` - General person lookup by letter/ID -- `AuthorsView()` - Filtered view of piece authors only -- `AuthorsListView` struct with sorting and letter availability -- Pre-processed agent data for efficient template rendering - -### Template Features & Data Processing - -**Enhanced Data Presentation**: -- Grouped pieces by title and work reference -- Category combination with proper German grammar ("und" vs. "mit") -- Inline citation format: DD.MM.YYYY/ISSUENO, PPP[-PPP] -- Works section showing review/commentary pieces -- External link integration (Wikipedia, GND, VIAF) - -**Text Sizing & Hierarchy**: -- Large serif names (`text-2xl font-serif font-bold`) -- Readable life dates and professions (`text-xl`) -- Appropriately sized content text (`text-lg`) -- Larger pill text (`text-sm`) matching issue view standards - -### JavaScript Integration - -**HTMX-Safe Scrollspy** (`views/transform/main.js`): -- Proper event listener cleanup on page navigation -- Memory leak prevention with timeout management -- Auto-initialization detection for `.author-section` elements -- Smooth scroll behavior for sidebar navigation - -**Performance Optimizations**: -- Debounced scroll handling (50ms) -- Efficient viewport calculations using `getBoundingClientRect()` -- Minimal DOM queries with cached element references -- Responsive behavior with automatic sidebar hiding - -### Responsive Design - -**Desktop Experience** (2XL+ screens): -- Two-column layout: 320px sidebar + flexible content area -- Fixed scrollspy navigation with full name list -- Multi-author highlighting system -- Smooth scrolling between authors - -**Mobile Experience** (< 2XL screens): -- Single-column layout with full-width content -- Hidden scrollspy navigation (saves space) -- Touch-optimized interactions -- Same content organization and functionality - -### Data Categories & Processing - -**Comprehensive Category Support**: -- All 29 XML-defined categories supported -- Dynamic category detection and grouping -- Proper German grammar rules for combinations -- Author filtering for non-current-user pieces - -**Helper Functions** (`templating/engine.go`): -- `merge`, `append`, `slice` - Data manipulation -- `sortStrings`, `unique` - Array processing -- `joinWithUnd` - German grammar formatting -- Enhanced data processing for complex template logic - -### Usage Examples - -**Template Integration**: -```gohtml -{{ template "_akteur_header" $agent }} -{{ template "_akteur_werke" $agent }} -{{ template "_akteur_beitraege" $agent }} -``` - -**Scrollspy Navigation**: -```gohtml -<a href="#author-{{ $id }}" - class="scrollspy-link border-l-4 border-transparent" - data-target="author-{{ $id }}"> - {{ index $agent.Names 0 }} -</a> -``` - -**HTMX Toggle**: -```gohtml -<input type="checkbox" - hx-get="/akteure/autoren" - hx-target="body" - hx-push-url="true"> -``` - -### Error Handling & Edge Cases - -**Template Safety**: -- Null checks for GND data and agent information -- Graceful fallback for missing names or professions -- Safe handling of empty work/piece lists -- Error boundaries for external link data - -**Navigation Robustness**: -- 404 handling for invalid agent IDs -- Automatic fallback for missing letters -- Smooth transitions between view modes -- Proper state management across HTMX swaps - -## Places System (/ort/) with Geonames Integration - -The application provides comprehensive place browsing with sophisticated geographic information integration through the Geonames API, offering modern place names, coordinates, and Wikipedia links. - -### Architecture & Data Flow - -**Geonames Provider** (`providers/geonames/`): -- Local JSON file caching system for offline operation -- API integration with geonames.org for geographic data enrichment -- Structured data models for places, coordinates, alternate names, and external links -- Automatic fallback between cached data and live API calls - -**Places Controller** (`controllers/ort_controller.go`): -- Handles both overview (`/ort/`) and individual place views (`/ort/{id}`) -- Integrates Geonames data with XML place data -- Template rendering with pre-processed geographic information - -**View Models** (`viewmodels/place_view.go`): -- `PlaceVM` struct for individual place display with Geonames integration -- `PlacesOverviewVM` for places listing with geographic context -- Pre-processed modern country names and local toponyms - -### Geonames Data Integration - -**Template Functions** (`app/kgpz.go`): -- `GetGeonames` - Retrieves cached or live Geonames data for places -- Geographic data accessible throughout all templates -- String manipulation functions for name comparisons and formatting - -**Data Structure**: -```go -type GeonamesPlace struct { - GeonameID int `json:"geonameId"` - Name string `json:"name"` - ToponymName string `json:"toponymName"` - CountryName string `json:"countryName"` - Lat string `json:"lat"` - Lng string `json:"lng"` - AlternateNames []AlternateName `json:"alternateNames"` - WikipediaURL string `json:"wikipediaURL"` -} -``` - -### Modern Place Name Display Logic - -**German Name Priority System**: -1. **Primary**: Search for German (`"de"`) alternate names in Geonames data -2. **Preferred Names**: Prioritize names with `IsPreferredName = true` -3. **Fallback**: Use `ToponymName` if no German names available -4. **Display Rule**: Only show modern names if they differ from historical German names - -**Implementation**: -```gohtml -{{- $modernName := "" -}} -{{- $hasGermanName := false -}} -{{- range $altName := $geonames.AlternateNames -}} -{{- if eq $altName.Lang "de" -}} -{{- $hasGermanName = true -}} -{{- if $altName.IsPreferredName -}} -{{- $modernName = $altName.Name -}} -{{- break -}} -{{- else if eq $modernName "" -}} -{{- $modernName = $altName.Name -}} -{{- end -}} -{{- end -}} -{{- end -}} -{{- if not $hasGermanName -}} -{{- $modernName = $geonames.ToponymName -}} -{{- end -}} -{{- if and (ne $modernName "") (ne (lower $modernName) (lower $mainPlaceName)) -}}, {{ $modernName }}{{- end }} -``` - -### Country Name Translations - -**Supported Countries with German Translations**: -- **France** → "heutiges Frankreich" -- **United Kingdom** → "heutiges Großbritannien" -- **Russia** → "heutiges Russland" -- **Czech Republic/Czechia** → "heutiges Tschechien" -- **Netherlands/The Netherlands** → "heutige Niederlande" -- **Poland** → "heutiges Polen" -- **Switzerland** → "heutige Schweiz" -- **Latvia** → "heutiges Lettland" -- **Sweden** → "heutiges Schweden" -- **Austria** → "heutiges Österreich" -- **Belgium** → "heutiges Belgien" -- **Slovakia** → "heutige Slowakei" -- **Finland** → "heutiges Finnland" -- **Denmark** → "heutiges Dänemark" - -**Display Format**: "heutiges [Country], [Local Name]" (only when local name differs) - -### Geographic Features - -**Coordinate Integration**: -- Clickable coordinates linking to OpenStreetMap -- Format: `https://www.openstreetmap.org/?mlat={lat}&mlon={lng}&zoom=12` -- Visual styling with map pin icons and hover effects - -**External Links**: -- **Wikipedia Integration**: Automatic Wikipedia link detection and display -- **Geonames Links**: Direct links to Geonames.org entries -- Consistent icon styling with external link security (`target="_blank"`, `rel="noopener noreferrer"`) - -### Template Structure - -**Individual Place View** (`views/routes/ort/body.gohtml`): -- **Header Section**: Place name with back navigation styled like agent pages -- **Geographic Info**: Modern country name with local toponyms when different -- **Coordinates**: Clickable OpenStreetMap links with proper formatting -- **External Links**: Wikipedia and Geonames integration with appropriate icons -- **Linked Articles**: "Verlinkte Beiträge" section showing associated newspaper pieces - -**Places Overview** (`views/routes/ort/`): -- **Streamlined Layout**: Removed non-functional alphabet navigation -- **Card Grid**: Responsive place cards with consistent heights (`h-24`) -- **Geographic Context**: Modern country names with local toponyms in overview cards -- **Clean Design**: Focus on essential information without cluttered indicators - -### Navigation & UI Improvements - -**Back Navigation**: -- **Style Consistency**: Matches agent page back button styling -- **Typography**: Large, bold text with arrow icon (`ri-arrow-left-line`) -- **Simplified Text**: "Orte" instead of "Zurück zur Übersicht" -- **Color Scheme**: Gray text with black hover, transition effects - -**External Link Styling**: -- **Consistent Icons**: Smaller Geonames symbols (`text-xl` instead of `text-2xl`) -- **No Underlines**: `no-underline` class for cleaner appearance -- **Hover Effects**: Opacity transitions for better user feedback - -### Data Processing & Caching - -**Geonames Provider Features**: -- **Local Caching**: JSON files stored locally to reduce API dependency -- **Automatic Fallback**: Graceful degradation when API unavailable -- **Data Enrichment**: Combines XML place data with geographic information -- **Performance**: Cached lookups for frequently accessed places - -**Template Integration**: -- **Helper Functions**: Accessible via `GetGeonames` template function -- **Error Handling**: Safe handling of missing or incomplete geographic data -- **Responsive Design**: Geographic information hidden for German places to reduce clutter - -### Usage Examples - -**Template Integration**: -```gohtml -{{ $geonames := GetGeonames .model.SelectedPlace.Place.ID }} -{{ if and (ne $geonames nil) (ne $geonames.CountryName "Germany") }} - <p>{{ $geonames.CountryName }}</p> -{{ end }} -``` - -**External Links**: -```gohtml -{{ if ne $geonames.WikipediaURL "" }} - <a href="{{ $geonames.WikipediaURL }}" target="_blank" rel="noopener noreferrer"> - <i class="ri-wikipedia-line"></i> Wikipedia - </a> -{{ end }} -``` - -**Coordinates**: -```gohtml -{{ if and (ne $geonames.Lat "") (ne $geonames.Lng "") }} - <a href="https://www.openstreetmap.org/?mlat={{ $geonames.Lat }}&mlon={{ $geonames.Lng }}&zoom=12" - target="_blank" rel="noopener noreferrer" class="text-blue-600 hover:text-blue-700 underline"> - {{ $geonames.Lat }}, {{ $geonames.Lng }} - </a> -{{ end }} -``` - -### Error Handling & Fallbacks - -**Geographic Data Safety**: -- Graceful handling of missing Geonames data -- Safe template evaluation with null checks -- Fallback display for places without geographic information -- Error boundaries for external API failures - -**Template Robustness**: -- Case-insensitive name comparisons using `lower` template function -- Proper handling of empty alternate names arrays -- Safe string manipulation with whitespace control -- Consistent behavior across detail and overview templates - -## Unified Piece Entry System - -The application uses a centralized component for displaying newspaper pieces (Beiträge) consistently across all views, ensuring uniform citation formatting and category-dependent descriptions throughout the interface. - -### Core Component - -**Central Template** (`views/routes/components/_unified_piece_entry.gohtml`): -- Universal component for piece display across all view contexts -- Handles both `viewmodels.PieceByIssue` and `xmlmodels.Piece` data structures -- Contains comprehensive category-specific descriptions (29+ categories) -- Unified citation formatting and place tag generation -- Supports different display modes for various page contexts - -### Data Structure Handling - -**Multi-Type Support**: -```gohtml -{{- /* Handle different piece types */ -}} -{{- $piece := $pieceInput -}} -{{- $isContinuation := false -}} -{{- if eq $displayMode "issue" -}} - {{- $piece = $pieceInput.Piece -}} - {{- $isContinuation = $pieceInput.IsContinuation -}} -{{- end -}} -``` - -**Display Mode Parameters**: -- `issue` - For issue table of contents with continuation handling -- `piece` - For multi-issue piece views -- `place` - For place-associated pieces with colon format -- `akteure` - For agent/author contribution lists - -### Category-Dependent Descriptions - -**Comprehensive Category Support**: -- **Reviews**: "Rezension zu [work title]" with linked authors -- **Obituaries**: "Nachruf auf [person name]" with agent category detection -- **Advertisements**: "Anzeige" with multiple place support -- **Letters**: "Brief" with sender/recipient information -- **Announcements**: Category-specific formatting for each type -- **Academic**: "Dissertation", "Disputation", "Programm" with institutional context - -**Special Category Handling**: -```gohtml -{{- range $agentref := $piece.AgentRefs -}} - {{- if eq $agentref.Category "nachruf" -}} - {{- $agent := GetAgent $agentref.Ref -}} - Nachruf auf <a href="/akteure/{{ $agentref.Ref }}">{{ index $agent.Names 0 }}</a> - {{- end -}} -{{- end -}} -``` - -### Place Tag Integration - -**Clickable Place Links**: -- Automatic place tag generation for all pieces -- Links to place detail pages (`/ort/{id}`) -- Multiple place support for advertisements and events -- Conditional display based on piece category - -**Implementation**: -```gohtml -{{ if and (ne (len $piece.PlaceRefs) 0) $ShowPlaceTags }} - {{ range $index, $placeRef := $piece.PlaceRefs }} - {{ if gt $index 0 }}, {{ end }} - <a href="/ort/{{ $placeRef.Ref }}" class="place-tag">{{ $placeName }}</a> - {{ end }} -{{ end }} -``` - -### Usage Across Views - -**Current Integration Points**: -- **Issue View** (`_inhaltsverzeichnis.gohtml`): Table of contents with continuation handling -- **Agent Views** (`_akteur_beitraege.gohtml`): Author contribution lists -- **Place Views** (`_place_pieces.gohtml`): Place-associated pieces -- **Piece Views** (`_piece_inhaltsverzeichnis.gohtml`): Multi-issue piece displays - -**Template Call Pattern**: -```gohtml -{{ template "_unified_piece_entry" (dict - "Piece" $piece - "DisplayMode" "issue" - "ShowPlaceTags" true - "UseColonFormat" false - "ShowContinuation" true -) }} -``` - -### Parameters & Configuration - -**Required Parameters**: -- `Piece` - The piece data structure (either type) -- `DisplayMode` - Context for formatting ("issue", "piece", "place", "akteure") - -**Optional Parameters**: -- `ShowPlaceTags` (bool) - Whether to display clickable place links -- `UseColonFormat` (bool) - Use colon separator for place-specific formatting -- `ShowContinuation` (bool) - Show continuation indicators for multi-part pieces -- `CurrentActorID` (string) - Exclude current agent from author links in agent views - -### Category Formatting Rules - -**Natural Language Descriptions**: -- Proper German grammar with gender-appropriate articles -- Work titles in italics with proper author attribution -- Place names as clickable tags when relevant -- Agent references with appropriate relationship indicators - -**Title Fallback Logic**: -1. Use piece title if available -2. Fall back to incipit (opening words) if no title -3. Generate category-specific description -4. Handle special cases (reviews, obituaries, advertisements) - -### Maintenance & Extension - -**Adding New Categories**: -1. Add new category case in the main conditional block -2. Implement category-specific description logic -3. Handle agent/place/work references as needed -4. Test across all view contexts - -**Modifying Display Logic**: -- Edit only `_unified_piece_entry.gohtml` -- Changes automatically apply to all views -- Test with different piece types and display modes -- Verify place tag and agent link functionality - -### Error Handling - -**Template Safety**: -- Null checks for all piece data fields -- Safe handling of missing titles, authors, or places -- Graceful fallback for unknown categories -- Type-safe access to different piece structures - -**Data Validation**: -- Proper handling of empty agent/place reference arrays -- Safe string manipulation and concatenation -- Conditional display based on data availability -- Consistent behavior across different piece types - -## Agent Relationship System - -The application handles complex relationships between agents (persons/organizations) and both works and pieces (Beiträge), with specific formatting for different contributor roles. - -### Contributor Categories - -**Supported Agent Categories**: -- **Empty/`"autor"`**: Primary authors (no special suffix) -- **`"übersetzer"`**: Translators - displayed with "(Übers.)" suffix -- **`"herausgeber"`**: Editors - displayed with "(Hrsg.)" suffix -- **`"nachruf"`**: Obituary subjects - special handling for "Nachruf auf [person]" - -### Work Relationships (`_akteur_werke.gohtml`) - -**Role Qualification in Works Bibliography**: -- Works display person's relationship to each work as a prefix -- **Authors**: No prefix (default relationship) -- **Translators**: `(Übers.) [Work Title]` -- **Editors**: `(Hrsg.) [Work Title]` - -**Example Output**: -``` -Werke -(Übers.) Herrn Johann Ludwigs Bianconi Zehn Sendschreiben an Herrn Marchese Philippo Hercolani... -Rezension: 1.2.1765/9, S. 33-34 - -Die Aufklärung der Philosophie (Leipzig: Breitkopf 1766) -Rezension: 1.5.1766/15, S. 45-48 -``` - -**Implementation Details**: -- Role detection via `$w.Item.AgentRefs` matching current person ID -- Prefix added before existing `Citation.HTML` content -- Break after finding person's role for performance -- Maintains all existing formatting and external links - -### Piece Relationships (Unified System) - -**Multi-Role Contributor Display**: -- Authors, translators, and editors can all contribute to single pieces -- Consistent formatting across all view contexts -- Proper comma separation and German conjunction handling - -**Display Patterns**: -``` -Author1, Author2, Translator1 (Übers.), Editor1 (Hrsg.): [Piece Content] -Schmidt (Übers.), Müller (Hrsg.): Rezension von: Goethe, Faust -Translator1 (Übers.): Übersetzung aus: Voltaire, Candide -``` - -**Work Citation Enhancement**: -- Work contributors shown with roles in piece citations -- Example: `Rezension von: Giovanni Lodovico Bianconi, Dorothea Henriette Runckel (Übers.), Zehn Sendschreiben` -- Maintains work author, translator, and editor relationships - -### Context-Sensitive Display - -**Agent Detail Pages** (`/akteure/{id}`): -- **Works Section**: Shows person's role as prefix `(Übers.)` or `(Hrsg.)` -- **Beiträge Section**: Groups pieces by title and contributors, shows other collaborators -- **Current Agent Exclusion**: Hides current person from contributor lists in their own page - -**Issue Views** (`/year/issue`): -- Full contributor display with all roles -- Shows piece authors, translators, and editors in table of contents -- Work citations include all work contributors with roles - -**Place Views** (`/ort/{id}`): -- Colon format: `Author (Übers.): [Content]` -- Regular format: `Author (Übers.), [Content]` -- Place-specific formatting for associated pieces - -**Multi-Issue Piece Views** (`/beitrag/{id}`): -- Consistent contributor display across issue boundaries -- Maintains role information in sequential display -- Work citations preserve contributor relationships - -### Technical Implementation - -**Variable Collections**: -```gohtml -{{- $authors := slice -}} -{{- $translators := slice -}} -{{- $editors := slice -}} -{{- range $agentref := $piece.AgentRefs -}} - {{- if eq $agentref.Category "übersetzer" -}} - {{- $translators = append $translators (dict "ID" $agentref.Ref "Name" $agentName) -}} - {{- else if eq $agentref.Category "herausgeber" -}} - {{- $editors = append $editors (dict "ID" $agentref.Ref "Name" $agentName) -}} - {{- end -}} -{{- end -}} -``` - -**Role Detection Logic**: -```gohtml -{{- range $workAgentRef := $work.AgentRefs -}} - {{- if eq $workAgentRef.Ref $currentPersonID -}} - {{- if eq $workAgentRef.Category "übersetzer" -}} - {{- $personRole = "(Übers.) " -}} - {{- else if eq $workAgentRef.Category "herausgeber" -}} - {{- $personRole = "(Hrsg.) " -}} - {{- end -}} - {{- end -}} -{{- end -}} -``` - -**Formatting Functions**: -- `joinWithUnd` - German conjunction for multiple contributors -- Current actor exclusion logic for agent detail pages -- Comma separation with proper spacing for role suffixes - -### Error Handling - -**Relationship Safety**: -- Graceful handling of missing agent references -- Safe access to agent data via `GetAgent` function -- Null checks for agent names and IDs -- Fallback display for unknown or malformed relationships - -**Performance Considerations**: -- Break statements after finding target relationships -- Efficient grouping by contributor combinations -- Minimal DOM manipulation for role prefixes -- Cached agent lookups where possible \ No newline at end of file +**Note**: The user runs a dev server in the background rebuilding assets & go code on file changes diff --git a/app/kgpz.go b/app/kgpz.go index 4ed43c2..fbd19d0 100644 --- a/app/kgpz.go +++ b/app/kgpz.go @@ -38,7 +38,7 @@ const ( YEAR_OVERVIEW_URL = "/jahrgang/:year" PLACE_OVERVIEW_URL = "/ort/:place?" AGENTS_OVERVIEW_URL = "/akteure/:letterorid" - CATEGORY_OVERVIEW_URL = "/kategorie/:category" + CATEGORY_OVERVIEW_URL = "/kategorie/:category?/:year?" PIECE_URL = "/beitrag/:id" PIECE_PAGE_URL = "/beitrag/:id/:page" diff --git a/controllers/filter_controller.go b/controllers/filter_controller.go index 286b22e..18373d8 100644 --- a/controllers/filter_controller.go +++ b/controllers/filter_controller.go @@ -140,12 +140,80 @@ func GetQuickFilter(kgpz *xmlmodels.Library) fiber.Handler { return strings.Compare(a.ID, b.ID) }) + // Get all categories with their first available year + categories := make([]CategorySummary, 0) + categoryYears := make(map[string][]int) // categoryID -> list of years + + // First pass: collect all years for each category + for _, piece := range kgpz.Pieces.Array { + // Get years for this piece + pieceYears := make(map[int]bool) + for _, issueRef := range piece.IssueRefs { + if issueRef.When.Year > 0 { + pieceYears[issueRef.When.Year] = true + } + } + + // Process CategoryRefs + for _, catRef := range piece.CategoryRefs { + if catRef.Ref != "" { + for year := range pieceYears { + categoryYears[catRef.Ref] = append(categoryYears[catRef.Ref], year) + } + } + } + + // Process WorkRefs with categories (rezension) + for _, workRef := range piece.WorkRefs { + categoryID := workRef.Category + if categoryID == "" { + categoryID = "rezension" // Default category for WorkRefs + } + for year := range pieceYears { + categoryYears[categoryID] = append(categoryYears[categoryID], year) + } + } + } + + // Build categories list with first year for each + kgpz.Categories.Lock() + for _, category := range kgpz.Categories.Array { + if yearsList, exists := categoryYears[category.ID]; exists && len(yearsList) > 0 { + // Find the earliest year for this category + slices.Sort(yearsList) + firstYear := yearsList[0] + + // Get the primary name (first name in the list) + var name string + if len(category.Names) > 0 { + name = category.Names[0] + } else { + name = category.ID // fallback to ID if no names + } + + categorySummary := CategorySummary{ + ID: category.ID, + Name: name, + FirstYear: firstYear, + } + + categories = append(categories, categorySummary) + } + } + kgpz.Categories.Unlock() + + // Sort categories list by name + slices.SortFunc(categories, func(a, b CategorySummary) int { + return strings.Compare(a.Name, b.Name) + }) + // Prepare data for the filter template data := fiber.Map{ "AvailableYears": availableYears, "Persons": persons, "Authors": authors, "Places": places, + "Categories": categories, "IssuesByYearJSON": string(issuesByYearJSON), } @@ -168,6 +236,13 @@ type PlaceSummary struct { Geo string } +// CategorySummary represents a simplified category for the filter list +type CategorySummary struct { + ID string + Name string + FirstYear int +} + // IssueSummary represents an issue for the Jahr/Ausgabe filter type IssueSummary struct { Number int `json:"number"` diff --git a/controllers/kategorie_controller.go b/controllers/kategorie_controller.go index d7e32e3..a770369 100644 --- a/controllers/kategorie_controller.go +++ b/controllers/kategorie_controller.go @@ -1,12 +1,111 @@ package controllers import ( + "slices" + "strconv" + "strings" + + "github.com/Theodor-Springmann-Stiftung/kgpz_web/helpers/logging" + "github.com/Theodor-Springmann-Stiftung/kgpz_web/viewmodels" "github.com/Theodor-Springmann-Stiftung/kgpz_web/xmlmodels" "github.com/gofiber/fiber/v2" ) +const ( + DEFAULT_CATEGORY = "" +) + func GetCategory(kgpz *xmlmodels.Library) fiber.Handler { return func(c *fiber.Ctx) error { - return c.Render("/kategorie/", nil) + categoryID := c.Params("category", DEFAULT_CATEGORY) + categoryID = strings.ToLower(categoryID) + yearParam := c.Params("year", "") + + // Case 1: No category specified - show categories list with years + if categoryID == "" { + categories := viewmodels.CategoriesView(kgpz) + if len(categories.Categories) == 0 { + logging.Error(nil, "No categories found") + return c.SendStatus(fiber.StatusNotFound) + } + return c.Render("/kategorie/list/", fiber.Map{ + "model": categories, + }) + } + + // Case 2: Both category and year specified - show pieces + if yearParam != "" { + year, err := strconv.Atoi(yearParam) + if err != nil { + logging.Error(err, "Invalid year parameter: "+yearParam) + return c.SendStatus(fiber.StatusBadRequest) + } + + categoryPieces := viewmodels.NewCategoryPiecesView(categoryID, year, kgpz) + if categoryPieces == nil { + logging.Error(nil, "Category not found: "+categoryID) + return c.SendStatus(fiber.StatusNotFound) + } + + return c.Render("/kategorie/pieces/", fiber.Map{ + "model": categoryPieces, + }) + } + + // Case 3: Category specified but no year - find first available year and redirect + firstYear := findFirstYearForCategory(categoryID, kgpz) + if firstYear == 0 { + // Category exists but has no pieces, redirect to category list + logging.Error(nil, "Category has no pieces: "+categoryID) + return c.Redirect("/kategorie/") + } + + // Redirect to category with first available year + return c.Redirect("/kategorie/" + categoryID + "/" + strconv.Itoa(firstYear)) } } + +// findFirstYearForCategory finds the earliest year that has pieces for the given category +func findFirstYearForCategory(categoryID string, kgpz *xmlmodels.Library) int { + categoryYears := make([]int, 0) + + for _, piece := range kgpz.Pieces.Array { + matchesCategory := false + + // Check direct CategoryRefs + for _, catRef := range piece.CategoryRefs { + if catRef.Ref == categoryID { + matchesCategory = true + break + } + } + + // Check WorkRefs with categories if not found in direct refs + if !matchesCategory { + for _, workRef := range piece.WorkRefs { + if workRef.Category == categoryID || (workRef.Category == "" && categoryID == "rezension") { + matchesCategory = true + break + } + } + } + + if matchesCategory { + // Extract years from IssueRefs + for _, issueRef := range piece.IssueRefs { + year := issueRef.When.Year + if year > 0 { + categoryYears = append(categoryYears, year) + } + } + } + } + + if len(categoryYears) == 0 { + return 0 // No pieces found for this category + } + + // Find the earliest year + slices.Sort(categoryYears) + return categoryYears[0] +} diff --git a/viewmodels/category_view.go b/viewmodels/category_view.go new file mode 100644 index 0000000..ad9f39b --- /dev/null +++ b/viewmodels/category_view.go @@ -0,0 +1,291 @@ +package viewmodels + +import ( + "slices" + + "github.com/Theodor-Springmann-Stiftung/kgpz_web/xmlmodels" +) + +// CategoriesListView represents the data for the categories overview page +type CategoriesListView struct { + Categories map[string]CategoryWithPieceCount + Sorted []string +} + +// CategoryDetailView represents a specific category with its available years +type CategoryDetailView struct { + Category xmlmodels.Category + CategoryReadable map[string]interface{} + AvailableYears []YearWithPieceCount + PieceCount int +} + +// CategoryPiecesView represents pieces filtered by category and year +type CategoryPiecesView struct { + Category xmlmodels.Category + CategoryReadable map[string]interface{} + Year int + Pieces []xmlmodels.Piece + PieceCount int + AvailableYears []YearWithPieceCount +} + +// CategoryWithPieceCount represents a category with total piece count and available years +type CategoryWithPieceCount struct { + Category xmlmodels.Category + Readable map[string]interface{} + PieceCount int + AvailableYears []YearWithPieceCount +} + +// YearWithPieceCount represents a year with piece count for a specific category +type YearWithPieceCount struct { + Year int + PieceCount int +} + +// CategoriesView returns categories data for the overview page +func CategoriesView(lib *xmlmodels.Library) *CategoriesListView { + res := CategoriesListView{Categories: make(map[string]CategoryWithPieceCount)} + + // Count pieces per category and year + categoryPieceCounts := make(map[string]int) + categoryYearCounts := make(map[string]map[int]int) // categoryID -> year -> count + + for _, piece := range lib.Pieces.Array { + // Get years for this piece + pieceYears := make(map[int]bool) + for _, issueRef := range piece.IssueRefs { + if issueRef.When.Year > 0 { + pieceYears[issueRef.When.Year] = true + } + } + + // Process CategoryRefs + for _, catRef := range piece.CategoryRefs { + if catRef.Ref != "" { + categoryPieceCounts[catRef.Ref]++ + if categoryYearCounts[catRef.Ref] == nil { + categoryYearCounts[catRef.Ref] = make(map[int]int) + } + for year := range pieceYears { + categoryYearCounts[catRef.Ref][year]++ + } + } + } + + // Process WorkRefs with categories + for _, workRef := range piece.WorkRefs { + categoryID := workRef.Category + if categoryID == "" { + categoryID = "rezension" // Default category for WorkRefs + } + categoryPieceCounts[categoryID]++ + if categoryYearCounts[categoryID] == nil { + categoryYearCounts[categoryID] = make(map[int]int) + } + for year := range pieceYears { + categoryYearCounts[categoryID][year]++ + } + } + } + + // Build categories list with piece counts and available years + for _, category := range lib.Categories.Array { + if categoryPieceCounts[category.ID] > 0 { + // Merge readable and readable HTML data + readable := category.Readable(lib) + readableHTML := category.ReadableHTML() + for k, v := range readableHTML { + readable[k] = v + } + + // Build available years list for this category + var availableYears []YearWithPieceCount + if yearCounts, exists := categoryYearCounts[category.ID]; exists { + years := make([]int, 0, len(yearCounts)) + for year := range yearCounts { + years = append(years, year) + } + slices.Sort(years) + + for _, year := range years { + availableYears = append(availableYears, YearWithPieceCount{ + Year: year, + PieceCount: yearCounts[year], + }) + } + } + + res.Categories[category.ID] = CategoryWithPieceCount{ + Category: category, + Readable: readable, + PieceCount: categoryPieceCounts[category.ID], + AvailableYears: availableYears, + } + res.Sorted = append(res.Sorted, category.ID) + } + } + + // Sort by category ID + slices.Sort(res.Sorted) + + return &res +} + +// CategoryDetailView returns category data with available years +func CategoryView(categoryID string, lib *xmlmodels.Library) *CategoryDetailView { + // Get the category + category := lib.Categories.Item(categoryID) + if category == nil { + return nil + } + + // Count pieces per year for this category + yearPieceCounts := make(map[int]int) + totalPieces := 0 + + for _, piece := range lib.Pieces.Array { + matchesCategory := false + + // Check direct CategoryRefs + for _, catRef := range piece.CategoryRefs { + if catRef.Ref == categoryID { + matchesCategory = true + break + } + } + + // Check WorkRefs with categories if not found in direct refs + if !matchesCategory { + for _, workRef := range piece.WorkRefs { + if workRef.Category == categoryID || (workRef.Category == "" && categoryID == "rezension") { + matchesCategory = true + break + } + } + } + + if matchesCategory { + totalPieces++ + // Extract years from IssueRefs + for _, issueRef := range piece.IssueRefs { + year := issueRef.When.Year + if year > 0 { + yearPieceCounts[year]++ + } + } + } + } + + // Build available years list + var availableYears []YearWithPieceCount + years := make([]int, 0, len(yearPieceCounts)) + for year := range yearPieceCounts { + years = append(years, year) + } + slices.Sort(years) + + for _, year := range years { + availableYears = append(availableYears, YearWithPieceCount{ + Year: year, + PieceCount: yearPieceCounts[year], + }) + } + + // Merge readable and readable HTML data + readable := category.Readable(lib) + readableHTML := category.ReadableHTML() + for k, v := range readableHTML { + readable[k] = v + } + + return &CategoryDetailView{ + Category: *category, + CategoryReadable: readable, + AvailableYears: availableYears, + PieceCount: totalPieces, + } +} + +// NewCategoryPiecesView returns pieces filtered by category and year +func NewCategoryPiecesView(categoryID string, year int, lib *xmlmodels.Library) *CategoryPiecesView { + // Get the category + category := lib.Categories.Item(categoryID) + if category == nil { + return nil + } + + var pieces []xmlmodels.Piece + yearPieceCounts := make(map[int]int) + + for _, piece := range lib.Pieces.Array { + matchesCategory := false + + // Check direct CategoryRefs + for _, catRef := range piece.CategoryRefs { + if catRef.Ref == categoryID { + matchesCategory = true + break + } + } + + // Check WorkRefs with categories if not found in direct refs + if !matchesCategory { + for _, workRef := range piece.WorkRefs { + if workRef.Category == categoryID || (workRef.Category == "" && categoryID == "rezension") { + matchesCategory = true + break + } + } + } + + if matchesCategory { + // Count all years for this category (for navigation) + for _, issueRef := range piece.IssueRefs { + if issueRef.When.Year > 0 { + yearPieceCounts[issueRef.When.Year]++ + } + } + + // Check if piece appears in the specified year + for _, issueRef := range piece.IssueRefs { + if issueRef.When.Year == year { + pieces = append(pieces, piece) + break + } + } + } + } + + // Build available years list + var availableYears []YearWithPieceCount + years := make([]int, 0, len(yearPieceCounts)) + for yearVal := range yearPieceCounts { + years = append(years, yearVal) + } + slices.Sort(years) + + for _, yearVal := range years { + availableYears = append(availableYears, YearWithPieceCount{ + Year: yearVal, + PieceCount: yearPieceCounts[yearVal], + }) + } + + // Merge readable and readable HTML data + readable := category.Readable(lib) + readableHTML := category.ReadableHTML() + for k, v := range readableHTML { + readable[k] = v + } + + return &CategoryPiecesView{ + Category: *category, + CategoryReadable: readable, + Year: year, + Pieces: pieces, + PieceCount: len(pieces), + AvailableYears: availableYears, + } +} \ No newline at end of file diff --git a/viewmodels/place_view.go b/viewmodels/place_view.go index 11486ce..9770dcd 100644 --- a/viewmodels/place_view.go +++ b/viewmodels/place_view.go @@ -15,6 +15,7 @@ type PlacesListView struct { Places map[string]xmlmodels.Place Sorted []string SelectedPlace *PlaceDetailView + TotalPiecesWithPlaces int } // PlaceDetailView represents a specific place with its associated pieces @@ -28,11 +29,18 @@ func PlacesView(placeID string, lib *xmlmodels.Library) *PlacesListView { res := PlacesListView{Search: placeID, Places: make(map[string]xmlmodels.Place)} av := make(map[string]bool) - // Get all places that are referenced in pieces + // Get all places that are referenced in pieces and count total pieces with places referencedPlaces := make(map[string]bool) + totalPiecesWithPlaces := 0 + for _, piece := range lib.Pieces.Array { + hasPlace := false for _, placeRef := range piece.PlaceRefs { referencedPlaces[placeRef.Ref] = true + hasPlace = true + } + if hasPlace { + totalPiecesWithPlaces++ } } @@ -56,6 +64,7 @@ func PlacesView(placeID string, lib *xmlmodels.Library) *PlacesListView { res.AvailableLetters = slices.Collect(maps.Keys(av)) slices.Sort(res.AvailableLetters) slices.Sort(res.Sorted) + res.TotalPiecesWithPlaces = totalPiecesWithPlaces return &res } diff --git a/views/assets/scripts.js b/views/assets/scripts.js index 73ecb5f..3a19342 100644 --- a/views/assets/scripts.js +++ b/views/assets/scripts.js @@ -2,7 +2,7 @@ document.body.addEventListener("htmx:configRequest", function(a) { let e = a.detail.elt; e.id === "search" && e.value === "" && (a.detail.parameters = {}, a.detail.path = window.location.pathname + window.location.search); }); -class H extends HTMLElement { +class A extends HTMLElement { constructor() { super(); } @@ -35,34 +35,36 @@ class H extends HTMLElement { }); } } -customElements.define("person-jump-filter", H); -class B extends HTMLElement { - constructor() { - super(); - } +customElements.define("person-jump-filter", A); +class H extends HTMLElement { connectedCallback() { - this.setupEventListeners(); - } - setupEventListeners() { - const e = this.querySelector("#place-search"), t = this.querySelector("#all-places"); - !e || !t || e.addEventListener("input", (i) => { - const n = i.target.value.toLowerCase().trim(); - this.filterPlaces(n); - }); - } - filterPlaces(e) { - const t = this.querySelector("#all-places"); - if (!t) - return; - t.querySelectorAll(".place-item").forEach((n) => { - var r; - const s = ((r = n.querySelector(".place-name")) == null ? void 0 : r.textContent) || ""; - !e || s.toLowerCase().includes(e) ? n.style.display = "block" : n.style.display = "none"; + const e = this.querySelector("#place-search"); + e && e.addEventListener("input", (t) => { + const i = t.target.value.toLowerCase().trim(); + this.querySelectorAll(".place-item").forEach((s) => { + var l; + const o = ((l = s.querySelector(".place-name")) == null ? void 0 : l.textContent) || "", r = !i || o.toLowerCase().includes(i); + s.style.display = r ? "block" : "none"; + }); }); } } -customElements.define("place-jump-filter", B); -class A extends HTMLElement { +customElements.define("place-jump-filter", H); +class B extends HTMLElement { + connectedCallback() { + const e = this.querySelector("#category-search"); + e && e.addEventListener("input", (t) => { + const i = t.target.value.toLowerCase().trim(); + this.querySelectorAll(".category-item").forEach((s) => { + var l; + const o = ((l = s.querySelector(".category-name")) == null ? void 0 : l.textContent) || "", r = !i || o.toLowerCase().includes(i); + s.style.display = r ? "block" : "none"; + }); + }); + } +} +customElements.define("category-jump-filter", B); +class M extends HTMLElement { constructor() { super(), this.issuesByYear = {}; } @@ -177,8 +179,8 @@ class A extends HTMLElement { i.disabled = !o; } } -customElements.define("year-jump-filter", A); -class M extends HTMLElement { +customElements.define("year-jump-filter", M); +class N extends HTMLElement { constructor() { super(), this.isOpen = !1; } @@ -240,8 +242,8 @@ class M extends HTMLElement { this.isOpen && t && i && !t.contains(e.target) && !this.contains(e.target) && this.hideFilter(); } } -customElements.define("schnellauswahl-button", M); -class N extends HTMLElement { +customElements.define("schnellauswahl-button", N); +class $ extends HTMLElement { constructor() { super(), this.isOpen = !1; } @@ -264,7 +266,7 @@ class N extends HTMLElement { <div>Übersicht nach</div> <div class="ml-2 flex flex-col gap-y-2 mt-2"> <a href="/">Jahrgängen</a> - <a href="/akteure/a">Personen</a> + <a href="/akteure/a">Personen & Werke</a> <a href="/kategorie/">Betragsarten</a> <a href="/ort/">Orten</a> </div> @@ -317,7 +319,7 @@ class N extends HTMLElement { this.isOpen && !this.contains(e.target) && this.hideMenu(); } } -customElements.define("navigation-menu", N); +customElements.define("navigation-menu", $); document.addEventListener("DOMContentLoaded", function() { document.addEventListener("click", function(a) { const e = a.target.closest('a[href^="/akteure/"], a[href^="/ort/"]'), t = document.getElementById("filter-container"); @@ -490,9 +492,9 @@ class O extends HTMLElement { document.documentElement.offsetHeight ), s = window.innerHeight, o = n - s, r = o > 0 ? window.scrollY / o : 0, l = t.clientHeight, d = t.scrollHeight - l; if (d > 0) { - const u = r * d, h = i.getBoundingClientRect(), p = t.getBoundingClientRect(), f = h.top - p.top + t.scrollTop, m = l / 2, I = f - m, v = 0.7, T = v * u + (1 - v) * I, y = Math.max(0, Math.min(d, T)), q = t.scrollTop; - Math.abs(y - q) > 10 && t.scrollTo({ - top: y, + const u = r * d, h = i.getBoundingClientRect(), p = t.getBoundingClientRect(), f = h.top - p.top + t.scrollTop, m = l / 2, T = f - m, y = 0.7, I = y * u + (1 - y) * T, v = Math.max(0, Math.min(d, I)), q = t.scrollTop; + Math.abs(v - q) > 10 && t.scrollTo({ + top: v, behavior: "smooth" }); } @@ -512,7 +514,7 @@ class O extends HTMLElement { } } customElements.define("akteure-scrollspy", O); -class $ extends HTMLElement { +class V extends HTMLElement { constructor() { super(), this.searchInput = null, this.placeCards = [], this.countElement = null, this.debounceTimer = null, this.originalCount = 0; } @@ -564,8 +566,82 @@ class $ extends HTMLElement { this.countElement && (t === "" ? this.countElement.textContent = `Alle Orte (${this.originalCount})` : e === 0 ? this.countElement.textContent = `Keine Orte gefunden für "${t}"` : this.countElement.textContent = `${e} von ${this.originalCount} Orten`); } } -customElements.define("places-filter", $); -class V extends HTMLElement { +customElements.define("places-filter", V); +class R extends HTMLElement { + constructor() { + super(), this.searchInput = null, this.itemCards = [], this.countElement = null, this.debounceTimer = null, this.originalCount = 0; + } + connectedCallback() { + this.placeholderText = this.getAttribute("placeholder") || "Suchen...", this.itemSelector = this.getAttribute("item-selector") || "[data-filter-item]", this.searchAttributes = (this.getAttribute("search-attributes") || "data-filter-text").split(","), this.countSelector = this.getAttribute("count-selector") || "[data-filter-count]", this.itemType = this.getAttribute("item-type") || "Einträge", this.itemTypeSingular = this.getAttribute("item-type-singular") || "Eintrag", this.render(), this.setupEventListeners(), this.initializeItems(); + } + disconnectedCallback() { + this.cleanupEventListeners(), this.debounceTimer && clearTimeout(this.debounceTimer); + } + render() { + this.innerHTML = ` + <div class="mb-6"> + <input + type="text" + id="generic-search" + placeholder="${this.placeholderText}" + autocomplete="off" + class="w-full px-3 py-2 border border-slate-300 rounded-md text-sm bg-white focus:outline-none focus:ring-1 focus:ring-blue-400 focus:border-blue-400" + > + </div> + `; + } + setupEventListeners() { + this.searchInput = this.querySelector("#generic-search"), this.searchInput && this.searchInput.addEventListener("input", this.handleSearchInput.bind(this)); + } + cleanupEventListeners() { + this.searchInput && this.searchInput.removeEventListener("input", this.handleSearchInput.bind(this)); + } + initializeItems() { + this.itemCards = Array.from(document.querySelectorAll(this.itemSelector)); + const e = this.closest(".filter-sidebar") || this.closest(".sidebar") || document; + this.countElement = e.querySelector(this.countSelector), console.log("GenericFilter initialized:", { + itemSelector: this.itemSelector, + itemsFound: this.itemCards.length, + countElement: this.countElement, + searchAttributes: this.searchAttributes + }), this.countElement && (this.originalCount = this.itemCards.length); + } + handleSearchInput(e) { + this.debounceTimer && clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => { + this.filterItems(e.target.value.trim()); + }, 150); + } + filterItems(e) { + if (!this.itemCards.length) return; + const t = e.toLowerCase(); + let i = 0; + this.itemCards.forEach((n) => { + var o; + let s = e === ""; + if (!s) { + for (const r of this.searchAttributes) + if ((((o = n.getAttribute(r.trim())) == null ? void 0 : o.toLowerCase()) || "").includes(t)) { + s = !0; + break; + } + } + s ? (n.style.display = "", i++) : n.style.display = "none"; + }), this.updateCountDisplay(i, e); + } + updateCountDisplay(e, t) { + if (this.countElement) + if (t === "") + this.countElement.textContent = `Alle ${this.itemType} (${this.originalCount})`; + else if (e === 0) + this.countElement.textContent = `Keine ${this.itemType} gefunden für "${t}"`; + else { + const i = e === 1 ? this.itemTypeSingular : this.itemType; + this.countElement.textContent = `${e} von ${this.originalCount} ${i}`; + } + } +} +customElements.define("generic-filter", R); +class z extends HTMLElement { constructor() { super(), this.resizeObserver = null; } @@ -918,7 +994,7 @@ class V extends HTMLElement { return "KGPZ"; } } -customElements.define("single-page-viewer", V); +customElements.define("single-page-viewer", z); document.body.addEventListener("htmx:beforeRequest", function(a) { const e = document.querySelector("single-page-viewer"); e && e.style.display !== "none" && (console.log("Cleaning up single page viewer before HTMX navigation"), e.close()); @@ -927,7 +1003,7 @@ window.addEventListener("beforeunload", function() { const a = document.querySelector("single-page-viewer"); a && a.close(); }); -class R extends HTMLElement { +class D extends HTMLElement { constructor() { super(), this.isVisible = !1, this.scrollHandler = null, this.htmxAfterSwapHandler = null; } @@ -968,8 +1044,8 @@ class R extends HTMLElement { }); } } -customElements.define("scroll-to-top-button", R); -class z extends HTMLElement { +customElements.define("scroll-to-top-button", D); +class j extends HTMLElement { constructor() { super(), this.pageObserver = null, this.pageContainers = /* @__PURE__ */ new Map(), this.singlePageViewerActive = !1, this.singlePageViewerCurrentPage = null, this.boundHandleSinglePageViewer = this.handleSinglePageViewer.bind(this); } @@ -1088,8 +1164,8 @@ class z extends HTMLElement { this.pageObserver && (this.pageObserver.disconnect(), this.pageObserver = null), document.removeEventListener("singlepageviewer:opened", this.boundHandleSinglePageViewer), document.removeEventListener("singlepageviewer:closed", this.boundHandleSinglePageViewer), document.removeEventListener("singlepageviewer:pagechanged", this.boundHandleSinglePageViewer), this.pageContainers.clear(); } } -customElements.define("inhaltsverzeichnis-scrollspy", z); -class j extends HTMLElement { +customElements.define("inhaltsverzeichnis-scrollspy", j); +class F extends HTMLElement { constructor() { super(), this.innerHTML = ` <div id="error-modal" class="fixed inset-0 bg-black bg-opacity-50 hidden z-50 flex items-center justify-center backdrop-blur-sm"> @@ -1137,11 +1213,11 @@ class j extends HTMLElement { window.showErrorModal = (e) => this.show(e), window.closeErrorModal = () => this.close(); } } -customElements.define("error-modal", j); +customElements.define("error-modal", F); window.currentPageContainers = window.currentPageContainers || []; window.currentActiveIndex = window.currentActiveIndex || 0; window.pageObserver = window.pageObserver || null; -function D(a, e, t, i = null) { +function K(a, e, t, i = null) { let n = document.querySelector("single-page-viewer"); n || (n = document.createElement("single-page-viewer"), document.body.appendChild(n)); const s = a.closest('[data-beilage="true"]') !== null, o = window.templateData && window.templateData.targetPage ? window.templateData.targetPage : 0, r = a.closest(".newspaper-page-container, .piece-page-container"); @@ -1159,7 +1235,7 @@ function D(a, e, t, i = null) { function E() { document.getElementById("pageModal").classList.add("hidden"); } -function F() { +function W() { if (window.pageObserver && (window.pageObserver.disconnect(), window.pageObserver = null), window.currentPageContainers = Array.from(document.querySelectorAll(".newspaper-page-container")), window.currentActiveIndex = 0, b(), document.querySelector(".newspaper-page-container")) { let e = /* @__PURE__ */ new Set(); window.pageObserver = new IntersectionObserver( @@ -1180,7 +1256,7 @@ function F() { }); } } -function K() { +function Z() { if (window.currentActiveIndex > 0) { let a = -1; const e = []; @@ -1201,7 +1277,7 @@ function K() { }, 100)); } } -function Z() { +function J() { if (window.currentActiveIndex < window.currentPageContainers.length - 1) { let a = -1; const e = []; @@ -1222,7 +1298,7 @@ function Z() { }, 100)); } } -function W() { +function G() { if (C()) { const e = document.querySelector("#newspaper-content .newspaper-page-container"); e && e.scrollIntoView({ @@ -1262,7 +1338,7 @@ function b() { i ? (t.title = "Zur Hauptausgabe", t.className = "w-14 h-10 lg:w-16 lg:h-12 px-2 py-1 bg-gray-100 hover:bg-gray-200 text-gray-700 hover:text-gray-800 border border-gray-300 transition-colors duration-200 flex items-center justify-center cursor-pointer", n && (n.className = "ri-file-text-line text-lg lg:text-xl")) : (t.title = "Zu Beilage", t.className = "w-14 h-10 lg:w-16 lg:h-12 px-2 py-1 bg-amber-100 hover:bg-amber-200 text-amber-700 hover:text-amber-800 border border-amber-300 transition-colors duration-200 flex items-center justify-center cursor-pointer", n && (n.className = "ri-attachment-line text-lg lg:text-xl")); } } -function J() { +function Y() { const a = document.getElementById("shareLinkBtn"); let e = ""; if (window.currentActiveIndex !== void 0 && window.currentPageContainers && window.currentPageContainers[window.currentActiveIndex]) { @@ -1297,7 +1373,7 @@ function x(a, e) { } } } -function Y() { +function U() { const a = document.getElementById("citationBtn"), e = document.title || "KGPZ"; let t = window.location.origin + window.location.pathname; t.includes("#") && (t = t.split("#")[0]); @@ -1350,7 +1426,7 @@ function g(a, e) { }, 200); }, 2e3); } -function G(a, e, t = !1) { +function X(a, e, t = !1) { let i = ""; if (t) i = window.location.origin + window.location.pathname + `#beilage-1-page-${a}`; @@ -1382,7 +1458,7 @@ function G(a, e, t = !1) { } } } -function U(a, e) { +function Q(a, e) { const t = document.title || "KGPZ", i = window.location.pathname.split("/"); let n; if (i.length >= 3) { @@ -1411,7 +1487,7 @@ function U(a, e) { } } function L() { - F(), window.addEventListener("scroll", function() { + W(), window.addEventListener("scroll", function() { clearTimeout(window.scrollTimeout), window.scrollTimeout = setTimeout(() => { b(); }, 50); @@ -1448,21 +1524,21 @@ function k() { "page-edition" ), a.includes("/akteure/") || a.includes("/autoren") ? e.classList.add("page-akteure") : a.match(/\/\d{4}\/\d+/) ? e.classList.add("page-ausgabe") : a.includes("/search") || a.includes("/suche") ? e.classList.add("page-search") : a.includes("/ort/") ? e.classList.add("page-ort") : a.includes("/kategorie/") ? e.classList.add("page-kategorie") : a.includes("/beitrag/") ? e.classList.add("page-piece") : a.includes("/edition") && e.classList.add("page-edition"); } -window.enlargePage = D; +window.enlargePage = K; window.closeModal = E; -window.scrollToPreviousPage = K; -window.scrollToNextPage = Z; -window.scrollToBeilage = W; -window.shareCurrentPage = J; -window.generateCitation = Y; -window.copyPagePermalink = G; -window.generatePageCitation = U; +window.scrollToPreviousPage = Z; +window.scrollToNextPage = J; +window.scrollToBeilage = G; +window.shareCurrentPage = Y; +window.generateCitation = U; +window.copyPagePermalink = X; +window.generatePageCitation = Q; k(); P(); document.querySelector(".newspaper-page-container") && L(); -let X = function(a) { +let _ = function(a) { k(), P(), S(), setTimeout(() => { document.querySelector(".newspaper-page-container") && L(); }, 50); }; -document.body.addEventListener("htmx:afterSettle", X); +document.body.addEventListener("htmx:afterSettle", _); diff --git a/views/assets/style.css b/views/assets/style.css index 3752f3e..7a8220b 100644 --- a/views/assets/style.css +++ b/views/assets/style.css @@ -1 +1 @@ -/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */@layer theme{:root{--font-sans:"Source Sans 3","Merriweather Sans",ui-sans-serif;--font-serif:"Merriweather",ui-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings);--font-script:Rancho,ui-serif;--breakpoint-3xl:120.063rem;--color-abyss:#0b1215;--color-shadow:#0f171f;--color-eclipse:#0b0b0b;--color-storm:#020c1a;--color-deep:#011122;--color-obsidian:#161616}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components{html{font-size:17px}body{background-color:var(--color-slate-50)}h1,h2,h3,h4{font-family:var(--font-serif);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}a{-webkit-hyphens:none;hyphens:none;color:var(--color-slate-700);text-decoration-line:underline;text-decoration-style:dotted}@media (hover:hover){a:hover{color:var(--color-slate-900);text-decoration-style:solid}}ul{margin-block:calc(var(--spacing)*2)}li{margin-left:calc(var(--spacing)*14);list-style-type:disc}a[aria-current=page]{color:var(--color-red-500)!important}main{flex-grow:1;flex-shrink:0}.newspaper-page-container{margin-bottom:2rem}.newspaper-page-container .absolute .page-indicator{pointer-events:auto;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}@media (width<=768px){.newspaper-page-container .absolute{transform:scale(.9)}}.single-page{justify-content:center;display:flex}.single-page .newspaper-page-image{object-fit:contain;width:auto;max-width:100%;height:750px}@media (width>=1280px){.single-page .newspaper-page-image{height:900px}}@media (width>=1536px){.single-page .newspaper-page-image{height:1050px}}@media (width<=640px){.single-page .newspaper-page-image{height:600px}}button#prevPageBtn:hover:not([style*="display: none"]),button#nextPageBtn:hover,button#beilageBtn:hover{color:#374151!important;background-color:#d1d5db!important}button#beilageBtn:hover{color:#92400e!important;background-color:#fed7aa!important}.scrollspy-hover:hover:not(.font-medium){background-color:#fef2f2}inhaltsverzeichnis-scrollspy{margin:0;padding:0;display:block}.inhalts-entry{transition:opacity .3s}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.-right-1{right:calc(var(--spacing)*-1)}.right-2{right:calc(var(--spacing)*2)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-10{grid-column:span 10/span 10}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}@media (width>=120.063rem){.container{max-width:120.063rem}}.\!m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-3{margin-inline:calc(var(--spacing)*3)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-3{margin-block:calc(var(--spacing)*3)}.my-4{margin-block:calc(var(--spacing)*4)}.\!mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-12{margin-top:calc(var(--spacing)*12)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-20{height:calc(var(--spacing)*20)}.h-96{height:calc(var(--spacing)*96)}.h-full{height:100%}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[1rem\]{min-height:1rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-6\/12{width:50%}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-96{width:calc(var(--spacing)*96)}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\(--breakpoint-2xl\){max-width:var(--breakpoint-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[85ch\]{max-width:85ch}.max-w-\[95ch\]{max-width:95ch}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.translate-2{--tw-translate-x:calc(var(--spacing)*2);--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-zoom-in{cursor:zoom-in}.resize{resize:both}.scroll-mt-8{scroll-margin-top:calc(var(--spacing)*8)}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-subgrid{grid-template-columns:subgrid}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-6{column-gap:calc(var(--spacing)*6)}.gap-x-8{column-gap:calc(var(--spacing)*8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-3{row-gap:calc(var(--spacing)*3)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-10{row-gap:calc(var(--spacing)*10)}.overflow-auto{overflow:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-8{border-top-style:var(--tw-border-style);border-top-width:8px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-400{border-color:var(--color-amber-400)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-300{border-color:var(--color-green-300)}.border-orange-300{border-color:var(--color-orange-300)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-600{border-color:var(--color-slate-600)}.border-yellow-200{border-color:var(--color-yellow-200)}.\!border-l-red-500{border-left-color:var(--color-red-500)!important}.\!bg-red-50{background-color:var(--color-red-50)!important}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-green-100{background-color:var(--color-green-100)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.object-contain{object-fit:contain}.\!p-0{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-7{padding-block:calc(var(--spacing)*7)}.py-8{padding-block:calc(var(--spacing)*8)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-right{text-align:right}.indent-0{text-indent:calc(var(--spacing)*0)}.indent-4{text-indent:calc(var(--spacing)*4)}.indent-6{text-indent:calc(var(--spacing)*6)}.align-bottom{vertical-align:bottom}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.whitespace-nowrap{white-space:nowrap}.\!text-red-600{color:var(--color-red-600)!important}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-orange-700{color:var(--color-orange-700)}.text-purple-700{color:var(--color-purple-700)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-white{color:var(--color-white)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.no-underline\!{text-decoration-line:none!important}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-slate-400{-webkit-text-decoration-color:var(--color-slate-400);text-decoration-color:var(--color-slate-400)}.decoration-dotted{text-decoration-style:dotted}.underline-offset-3{text-underline-offset:3px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[a-zA-Z\:\\-\\\.\]{a-zA-Z:\-\.}.font-variant-small-caps{font-variant-caps:small-caps}.select-none{-webkit-user-select:none;user-select:none}.first\:mb-0:first-child{margin-bottom:calc(var(--spacing)*0)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.odd\:bg-slate-50:nth-child(odd){background-color:var(--color-slate-50)}.even\:bg-white:nth-child(2n){background-color:var(--color-white)}.checked\:border-red-600:checked{border-color:var(--color-red-600)}.checked\:bg-red-600:checked{background-color:var(--color-red-600)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-amber-300:hover{border-color:var(--color-amber-300)}.hover\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\:bg-amber-100:hover{background-color:var(--color-amber-100)}.hover\:bg-amber-200:hover{background-color:var(--color-amber-200)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\:bg-orange-200:hover{background-color:var(--color-orange-200)}.hover\:bg-purple-200:hover{background-color:var(--color-purple-200)}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\:text-amber-600:hover{color:var(--color-amber-600)}.hover\:text-amber-800:hover{color:var(--color-amber-800)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-green-800:hover{color:var(--color-green-800)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-slate-700:hover{color:var(--color-slate-700)}.hover\:text-slate-900:hover{color:var(--color-slate-900)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-slate-600:hover{-webkit-text-decoration-color:var(--color-slate-600);text-decoration-color:var(--color-slate-600)}.hover\:decoration-solid:hover{text-decoration-style:solid}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:border-red-500:focus{border-color:var(--color-red-500)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:ring-slate-300:focus{--tw-ring-color:var(--color-slate-300)}.focus\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.enabled\:bg-blue-600:enabled{background-color:var(--color-blue-600)}@media (hover:hover){.enabled\:hover\:bg-blue-700:enabled:hover{background-color:var(--color-blue-700)}}.enabled\:focus\:ring-blue-500:enabled:focus{--tw-ring-color:var(--color-blue-500)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-slate-100:disabled{background-color:var(--color-slate-100)}.disabled\:bg-slate-400:disabled{background-color:var(--color-slate-400)}.disabled\:text-slate-500:disabled{color:var(--color-slate-500)}@media (width>=48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=64rem){.lg\:sticky{position:sticky}.lg\:top-12{top:calc(var(--spacing)*12)}.lg\:h-12{height:calc(var(--spacing)*12)}.lg\:max-h-\[calc\(100vh-2rem\)\]{max-height:calc(100vh - 2rem)}.lg\:w-1\/4{width:25%}.lg\:w-3\/4{width:75%}.lg\:w-16{width:calc(var(--spacing)*16)}.lg\:w-20{width:calc(var(--spacing)*20)}.lg\:min-w-\[768px\]{min-width:768px}.lg\:min-w-\[800px\]{min-width:800px}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:px-6{padding-inline:calc(var(--spacing)*6)}.lg\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=80rem){.xl\:w-1\/4{width:25%}.xl\:w-3\/4{width:75%}.xl\:w-24{width:calc(var(--spacing)*24)}.xl\:min-w-\[900px\]{min-width:900px}.xl\:min-w-\[1024px\]{min-width:1024px}.xl\:px-8{padding-inline:calc(var(--spacing)*8)}}@media (width>=96rem){.\32xl\:mb-0{margin-bottom:calc(var(--spacing)*0)}.\32xl\:block{display:block}.\32xl\:hidden{display:none}.\32xl\:w-1\/4{width:25%}.\32xl\:w-3\/4{width:75%}}@media (width>=120.063rem){.\33xl\:block{display:block}.\33xl\:w-1\/5{width:20%}.\33xl\:w-4\/5{width:80%}.\33xl\:pr-0{padding-right:calc(var(--spacing)*0)}.\33xl\:pl-4{padding-left:calc(var(--spacing)*4)}}.\[\&_\*\]\:\!indent-0 *{text-indent:calc(var(--spacing)*0)!important}.\[\&\>a\]\:text-blue-600>a{color:var(--color-blue-600)}.\[\&\>a\:hover\]\:text-blue-700>a:hover{color:var(--color-blue-700)}.\[\&\>div\]\:bg-slate-100>div{background-color:var(--color-slate-100)}.\[\&\>div\]\:px-4>div{padding-inline:calc(var(--spacing)*4)}.\[\&\>div\]\:py-3>div{padding-block:calc(var(--spacing)*3)}}body:before{content:"";z-index:-1;opacity:.4;background-image:url(skyscraper.webp);background-position:50%;background-repeat:repeat;background-size:100px 100px;transition:transform 1.5s ease-in-out;animation:60s linear infinite backdrop-drift;position:fixed;top:-50%;right:-50%;bottom:-50%;left:-50%;transform:rotate(15deg)skew(25deg)scale(4)}@keyframes backdrop-drift{0%{transform:rotate(15deg)skew(25deg)scale(4)}25%{transform:rotate(20deg)skew(30deg)scale(4.1)}50%{transform:rotate(10deg)skew(20deg)scale(3.9)}75%{transform:rotate(18deg)skew(28deg)scale(4.05)}to{transform:rotate(15deg)skew(25deg)scale(4)}}body.page-akteure:before{animation:45s ease-in-out infinite backdrop-drift-akteure}body.page-ausgabe:before{animation:55s ease-in-out infinite backdrop-drift-ausgabe}body.page-search:before{animation:40s ease-in-out infinite backdrop-drift-search}body.page-ort:before{animation:65s ease-in-out infinite backdrop-drift-ort}body.page-kategorie:before{animation:50s ease-in-out infinite backdrop-drift-kategorie}body.page-piece:before{animation:58s ease-in-out infinite backdrop-drift-piece}body.page-edition:before{animation:42s ease-in-out infinite backdrop-drift-edition}@keyframes backdrop-drift-akteure{0%{transform:rotate(-35deg)skew(-40deg)scale(4.2)}25%{transform:rotate(-30deg)skew(-35deg)scale(4)}50%{transform:rotate(-40deg)skew(-45deg)scale(4.4)}75%{transform:rotate(-32deg)skew(-38deg)scale(4.1)}to{transform:rotate(-35deg)skew(-40deg)scale(4.2)}}@keyframes backdrop-drift-ausgabe{0%{transform:rotate(40deg)skew(15deg)scale(4.5)}25%{transform:rotate(45deg)skew(20deg)scale(4.3)}50%{transform:rotate(35deg)skew(10deg)scale(4.7)}75%{transform:rotate(42deg)skew(18deg)scale(4.4)}to{transform:rotate(40deg)skew(15deg)scale(4.5)}}@keyframes backdrop-drift-search{0%{transform:rotate(0)skew(45deg)scale(3.8)}25%{transform:rotate(5deg)skew(50deg)scale(3.6)}50%{transform:rotate(-5deg)skew(40deg)scale(4)}75%{transform:rotate(2deg)skew(48deg)scale(3.7)}to{transform:rotate(0)skew(45deg)scale(3.8)}}@keyframes backdrop-drift-ort{0%{transform:rotate(60deg)skew(-30deg)scale(4.8)}25%{transform:rotate(65deg)skew(-25deg)scale(4.6)}50%{transform:rotate(55deg)skew(-35deg)scale(5)}75%{transform:rotate(62deg)skew(-28deg)scale(4.7)}to{transform:rotate(60deg)skew(-30deg)scale(4.8)}}@keyframes backdrop-drift-kategorie{0%{transform:rotate(-25deg)skew(50deg)scale(4.1)}25%{transform:rotate(-20deg)skew(55deg)scale(3.9)}50%{transform:rotate(-30deg)skew(45deg)scale(4.3)}75%{transform:rotate(-22deg)skew(52deg)scale(4)}to{transform:rotate(-25deg)skew(50deg)scale(4.1)}}@keyframes backdrop-drift-piece{0%{transform:rotate(45deg)skew(-25deg)scale(4.3)}25%{transform:rotate(50deg)skew(-20deg)scale(4.1)}50%{transform:rotate(40deg)skew(-30deg)scale(4.5)}75%{transform:rotate(47deg)skew(-22deg)scale(4.2)}to{transform:rotate(45deg)skew(-25deg)scale(4.3)}}@keyframes backdrop-drift-edition{0%{transform:rotate(-50deg)skew(35deg)scale(3.9)}25%{transform:rotate(-45deg)skew(40deg)scale(3.7)}50%{transform:rotate(-55deg)skew(30deg)scale(4.1)}75%{transform:rotate(-48deg)skew(38deg)scale(3.8)}to{transform:rotate(-50deg)skew(35deg)scale(3.9)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} +/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */@layer theme{:root{--font-sans:"Source Sans 3","Merriweather Sans",ui-sans-serif;--font-serif:"Merriweather",ui-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings);--font-script:Rancho,ui-serif;--breakpoint-3xl:120.063rem;--color-abyss:#0b1215;--color-shadow:#0f171f;--color-eclipse:#0b0b0b;--color-storm:#020c1a;--color-deep:#011122;--color-obsidian:#161616}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components{html{font-size:17px}body{background-color:var(--color-slate-50)}h1,h2,h3,h4{font-family:var(--font-serif);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}a{-webkit-hyphens:none;hyphens:none;color:var(--color-slate-700);text-decoration-line:underline;text-decoration-style:dotted}@media (hover:hover){a:hover{color:var(--color-slate-900);text-decoration-style:solid}}ul{margin-block:calc(var(--spacing)*2)}li{margin-left:calc(var(--spacing)*14);list-style-type:disc}a[aria-current=page]{color:var(--color-red-500)!important}main{flex-grow:1;flex-shrink:0}.newspaper-page-container{margin-bottom:2rem}.newspaper-page-container .absolute .page-indicator{pointer-events:auto;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}@media (width<=768px){.newspaper-page-container .absolute{transform:scale(.9)}}.single-page{justify-content:center;display:flex}.single-page .newspaper-page-image{object-fit:contain;width:auto;max-width:100%;height:750px}@media (width>=1280px){.single-page .newspaper-page-image{height:900px}}@media (width>=1536px){.single-page .newspaper-page-image{height:1050px}}@media (width<=640px){.single-page .newspaper-page-image{height:600px}}button#prevPageBtn:hover:not([style*="display: none"]),button#nextPageBtn:hover,button#beilageBtn:hover{color:#374151!important;background-color:#d1d5db!important}button#beilageBtn:hover{color:#92400e!important;background-color:#fed7aa!important}.scrollspy-hover:hover:not(.font-medium){background-color:#fef2f2}inhaltsverzeichnis-scrollspy{margin:0;padding:0;display:block}.inhalts-entry{transition:opacity .3s}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.-top-1{top:calc(var(--spacing)*-1)}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.-right-1{right:calc(var(--spacing)*-1)}.right-2{right:calc(var(--spacing)*2)}.right-6{right:calc(var(--spacing)*6)}.bottom-6{bottom:calc(var(--spacing)*6)}.z-0{z-index:0}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-10{grid-column:span 10/span 10}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}@media (width>=120.063rem){.container{max-width:120.063rem}}.\!m-0{margin:calc(var(--spacing)*0)!important}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-3{margin-inline:calc(var(--spacing)*3)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-3{margin-block:calc(var(--spacing)*3)}.my-4{margin-block:calc(var(--spacing)*4)}.\!mt-0{margin-top:calc(var(--spacing)*0)!important}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-12{margin-top:calc(var(--spacing)*12)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.ml-0{margin-left:calc(var(--spacing)*0)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-20{height:calc(var(--spacing)*20)}.h-96{height:calc(var(--spacing)*96)}.h-full{height:100%}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[1rem\]{min-height:1rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-6\/12{width:50%}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-96{width:calc(var(--spacing)*96)}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\(--breakpoint-2xl\){max-width:var(--breakpoint-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[85ch\]{max-width:85ch}.max-w-\[95ch\]{max-width:95ch}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.translate-2{--tw-translate-x:calc(var(--spacing)*2);--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-zoom-in{cursor:zoom-in}.resize{resize:both}.scroll-mt-8{scroll-margin-top:calc(var(--spacing)*8)}.columns-2{columns:2}.break-inside-avoid{break-inside:avoid}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-subgrid{grid-template-columns:subgrid}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-6{column-gap:calc(var(--spacing)*6)}.gap-x-8{column-gap:calc(var(--spacing)*8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-3{row-gap:calc(var(--spacing)*3)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-10{row-gap:calc(var(--spacing)*10)}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-8{border-top-style:var(--tw-border-style);border-top-width:8px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-400{border-color:var(--color-amber-400)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-300{border-color:var(--color-green-300)}.border-orange-300{border-color:var(--color-orange-300)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-300{border-color:var(--color-red-300)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-400{border-color:var(--color-slate-400)}.border-slate-600{border-color:var(--color-slate-600)}.border-yellow-200{border-color:var(--color-yellow-200)}.\!border-l-red-500{border-left-color:var(--color-red-500)!important}.\!bg-red-50{background-color:var(--color-red-50)!important}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-green-100{background-color:var(--color-green-100)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-300{background-color:var(--color-slate-300)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-50{background-color:var(--color-yellow-50)}.object-contain{object-fit:contain}.\!p-0{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-7{padding-block:calc(var(--spacing)*7)}.py-8{padding-block:calc(var(--spacing)*8)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-right{text-align:right}.indent-0{text-indent:calc(var(--spacing)*0)}.indent-4{text-indent:calc(var(--spacing)*4)}.indent-6{text-indent:calc(var(--spacing)*6)}.align-bottom{vertical-align:bottom}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.whitespace-nowrap{white-space:nowrap}.\!text-red-600{color:var(--color-red-600)!important}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-100{color:var(--color-gray-100)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-orange-700{color:var(--color-orange-700)}.text-purple-700{color:var(--color-purple-700)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.no-underline{text-decoration-line:none}.no-underline\!{text-decoration-line:none!important}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.decoration-slate-400{-webkit-text-decoration-color:var(--color-slate-400);text-decoration-color:var(--color-slate-400)}.decoration-dotted{text-decoration-style:dotted}.underline-offset-3{text-underline-offset:3px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[a-zA-Z\:\\-\\\.\]{a-zA-Z:\-\.}.font-variant-small-caps{font-variant-caps:small-caps}.select-none{-webkit-user-select:none;user-select:none}.first\:mb-0:first-child{margin-bottom:calc(var(--spacing)*0)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.odd\:bg-slate-50:nth-child(odd){background-color:var(--color-slate-50)}.even\:bg-white:nth-child(2n){background-color:var(--color-white)}.checked\:border-red-600:checked{border-color:var(--color-red-600)}.checked\:bg-red-600:checked{background-color:var(--color-red-600)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-amber-300:hover{border-color:var(--color-amber-300)}.hover\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\:bg-amber-100:hover{background-color:var(--color-amber-100)}.hover\:bg-amber-200:hover{background-color:var(--color-amber-200)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\:bg-orange-200:hover{background-color:var(--color-orange-200)}.hover\:bg-purple-200:hover{background-color:var(--color-purple-200)}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\:text-amber-600:hover{color:var(--color-amber-600)}.hover\:text-amber-800:hover{color:var(--color-amber-800)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-green-800:hover{color:var(--color-green-800)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-slate-700:hover{color:var(--color-slate-700)}.hover\:text-slate-800:hover{color:var(--color-slate-800)}.hover\:text-slate-900:hover{color:var(--color-slate-900)}.hover\:underline:hover{text-decoration-line:underline}.hover\:decoration-slate-600:hover{-webkit-text-decoration-color:var(--color-slate-600);text-decoration-color:var(--color-slate-600)}.hover\:decoration-solid:hover{text-decoration-style:solid}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:border-red-500:focus{border-color:var(--color-red-500)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:ring-slate-300:focus{--tw-ring-color:var(--color-slate-300)}.focus\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.enabled\:bg-blue-600:enabled{background-color:var(--color-blue-600)}@media (hover:hover){.enabled\:hover\:bg-blue-700:enabled:hover{background-color:var(--color-blue-700)}}.enabled\:focus\:ring-blue-500:enabled:focus{--tw-ring-color:var(--color-blue-500)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-slate-100:disabled{background-color:var(--color-slate-100)}.disabled\:bg-slate-400:disabled{background-color:var(--color-slate-400)}.disabled\:text-slate-500:disabled{color:var(--color-slate-500)}@media (width>=48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=64rem){.lg\:sticky{position:sticky}.lg\:top-12{top:calc(var(--spacing)*12)}.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:h-12{height:calc(var(--spacing)*12)}.lg\:max-h-\[calc\(100vh-2rem\)\]{max-height:calc(100vh - 2rem)}.lg\:w-1\/4{width:25%}.lg\:w-3\/4{width:75%}.lg\:w-16{width:calc(var(--spacing)*16)}.lg\:w-20{width:calc(var(--spacing)*20)}.lg\:min-w-\[800px\]{min-width:800px}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:px-6{padding-inline:calc(var(--spacing)*6)}.lg\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=80rem){.xl\:w-1\/4{width:25%}.xl\:w-3\/4{width:75%}.xl\:w-24{width:calc(var(--spacing)*24)}.xl\:min-w-\[900px\]{min-width:900px}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:px-8{padding-inline:calc(var(--spacing)*8)}}@media (width>=96rem){.\32xl\:mb-0{margin-bottom:calc(var(--spacing)*0)}.\32xl\:block{display:block}.\32xl\:hidden{display:none}.\32xl\:w-1\/4{width:25%}.\32xl\:w-3\/4{width:75%}}@media (width>=120.063rem){.\33xl\:block{display:block}.\33xl\:w-1\/5{width:20%}.\33xl\:w-4\/5{width:80%}.\33xl\:pr-0{padding-right:calc(var(--spacing)*0)}.\33xl\:pl-4{padding-left:calc(var(--spacing)*4)}}.\[\&_\*\]\:\!indent-0 *{text-indent:calc(var(--spacing)*0)!important}.\[\&\>a\]\:text-blue-600>a{color:var(--color-blue-600)}.\[\&\>a\:hover\]\:text-blue-700>a:hover{color:var(--color-blue-700)}.\[\&\>div\]\:bg-slate-100>div{background-color:var(--color-slate-100)}.\[\&\>div\]\:px-4>div{padding-inline:calc(var(--spacing)*4)}.\[\&\>div\]\:py-3>div{padding-block:calc(var(--spacing)*3)}}body:before{content:"";z-index:-1;opacity:.4;background-image:url(skyscraper.webp);background-position:50%;background-repeat:repeat;background-size:100px 100px;transition:transform 1.5s ease-in-out;animation:60s linear infinite backdrop-drift;position:fixed;top:-50%;right:-50%;bottom:-50%;left:-50%;transform:rotate(15deg)skew(25deg)scale(4)}@keyframes backdrop-drift{0%{transform:rotate(15deg)skew(25deg)scale(4)}25%{transform:rotate(20deg)skew(30deg)scale(4.1)}50%{transform:rotate(10deg)skew(20deg)scale(3.9)}75%{transform:rotate(18deg)skew(28deg)scale(4.05)}to{transform:rotate(15deg)skew(25deg)scale(4)}}body.page-akteure:before{animation:45s ease-in-out infinite backdrop-drift-akteure}body.page-ausgabe:before{animation:55s ease-in-out infinite backdrop-drift-ausgabe}body.page-search:before{animation:40s ease-in-out infinite backdrop-drift-search}body.page-ort:before{animation:65s ease-in-out infinite backdrop-drift-ort}body.page-kategorie:before{animation:50s ease-in-out infinite backdrop-drift-kategorie}body.page-piece:before{animation:58s ease-in-out infinite backdrop-drift-piece}body.page-edition:before{animation:42s ease-in-out infinite backdrop-drift-edition}@keyframes backdrop-drift-akteure{0%{transform:rotate(-35deg)skew(-40deg)scale(4.2)}25%{transform:rotate(-30deg)skew(-35deg)scale(4)}50%{transform:rotate(-40deg)skew(-45deg)scale(4.4)}75%{transform:rotate(-32deg)skew(-38deg)scale(4.1)}to{transform:rotate(-35deg)skew(-40deg)scale(4.2)}}@keyframes backdrop-drift-ausgabe{0%{transform:rotate(40deg)skew(15deg)scale(4.5)}25%{transform:rotate(45deg)skew(20deg)scale(4.3)}50%{transform:rotate(35deg)skew(10deg)scale(4.7)}75%{transform:rotate(42deg)skew(18deg)scale(4.4)}to{transform:rotate(40deg)skew(15deg)scale(4.5)}}@keyframes backdrop-drift-search{0%{transform:rotate(0)skew(45deg)scale(3.8)}25%{transform:rotate(5deg)skew(50deg)scale(3.6)}50%{transform:rotate(-5deg)skew(40deg)scale(4)}75%{transform:rotate(2deg)skew(48deg)scale(3.7)}to{transform:rotate(0)skew(45deg)scale(3.8)}}@keyframes backdrop-drift-ort{0%{transform:rotate(60deg)skew(-30deg)scale(4.8)}25%{transform:rotate(65deg)skew(-25deg)scale(4.6)}50%{transform:rotate(55deg)skew(-35deg)scale(5)}75%{transform:rotate(62deg)skew(-28deg)scale(4.7)}to{transform:rotate(60deg)skew(-30deg)scale(4.8)}}@keyframes backdrop-drift-kategorie{0%{transform:rotate(-25deg)skew(50deg)scale(4.1)}25%{transform:rotate(-20deg)skew(55deg)scale(3.9)}50%{transform:rotate(-30deg)skew(45deg)scale(4.3)}75%{transform:rotate(-22deg)skew(52deg)scale(4)}to{transform:rotate(-25deg)skew(50deg)scale(4.1)}}@keyframes backdrop-drift-piece{0%{transform:rotate(45deg)skew(-25deg)scale(4.3)}25%{transform:rotate(50deg)skew(-20deg)scale(4.1)}50%{transform:rotate(40deg)skew(-30deg)scale(4.5)}75%{transform:rotate(47deg)skew(-22deg)scale(4.2)}to{transform:rotate(45deg)skew(-25deg)scale(4.3)}}@keyframes backdrop-drift-edition{0%{transform:rotate(-50deg)skew(35deg)scale(3.9)}25%{transform:rotate(-45deg)skew(40deg)scale(3.7)}50%{transform:rotate(-55deg)skew(30deg)scale(4.1)}75%{transform:rotate(-48deg)skew(38deg)scale(3.8)}to{transform:rotate(-50deg)skew(35deg)scale(3.9)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} diff --git a/views/routes/akteure/autoren/body.gohtml b/views/routes/akteure/autoren/body.gohtml index f8541bd..3c86db3 100644 --- a/views/routes/akteure/autoren/body.gohtml +++ b/views/routes/akteure/autoren/body.gohtml @@ -1,14 +1,13 @@ -<div class="max-w-7xl mx-auto px-8 py-8"> - <div class="mb-10 2xl:mb-0"> +<div class="max-w-none mx-auto px-8"> + <div class="mb-10 2xl:mb-0 sticky top-0 "> {{ template "_header_with_toggle" .model }} </div> <!-- Two Column Layout: Scrollspy + Content --> <div class="flex gap-8"> {{ template "_scrollspy_layout" .model }} - <!-- People List - Main Content --> - <div class="flex-1 space-y-6 bg-white"> + <div class="flex-1 space-y-6 bg-white mt-4"> {{ range $_, $id := $.model.Sorted }} {{ $a := index $.model.Agents $id }} <div id="author-{{ $id }}" class="p-6 scroll-mt-8 author-section"> @@ -17,4 +16,4 @@ {{ end }} </div> </div> -</div> \ No newline at end of file +</div> diff --git a/views/routes/akteure/letter/body.gohtml b/views/routes/akteure/letter/body.gohtml index 200071d..ef35089 100644 --- a/views/routes/akteure/letter/body.gohtml +++ b/views/routes/akteure/letter/body.gohtml @@ -1,23 +1,40 @@ -<div class="max-w-7xl mx-auto px-8 py-8"> - <div class="mb-10 2xl:mb-0"> - {{ template "_header_with_toggle" .model }} - - <!-- Alphabet Navigation --> - {{ template "_alphabet_nav" .model }} - </div> - - <!-- Two Column Layout: Scrollspy + Content --> +<div class="max-w-none mx-auto px-8"> + <!-- Two Column Layout: Header+Scrollspy + Content --> <div class="flex gap-8"> + <!-- Left Column: Header + Scrollspy --> {{ template "_scrollspy_layout" .model }} + <!-- Mobile Header (shown on smaller screens) --> + <div class="2xl:hidden mb-10 w-full"> + {{ template "_header_with_toggle" .model }} + </div> + <!-- People List - Main Content --> - <div class="flex-1 space-y-6 bg-white"> + <div class="flex-1 space-y-6 flex flex-col"> + <!-- Alphabet Navigation --> + <div class="mb-6 w-full pt-4"> + <div class="bg-white px-8 py-4 rounded"> + <div class="mx-auto flex flex-row flex-wrap gap-x-6 gap-y-3 w-fit items-end leading-none justify-center"> + {{ range $_, $l := .model.AvailableLetters }} + {{ if eq $l (Upper $.model.Search) }} + <!-- This is the active letter --> + <span class="no-underline leading-none !m-0 !p-0 text-3xl font-bold text-red-600 pointer-events-none" aria-current="true">{{ $l }}</span> + {{ else }} + <!-- This is an inactive letter --> + <a href="/akteure/{{ $l }}" class="no-underline leading-none !m-0 !p-0 text-xl font-medium text-gray-700 hover:text-red-600 transition-colors">{{ $l }}</a> + {{ end }} + {{ end }} + </div> + </div> + </div> + <dv class="flex-1 space-y-6 bg-white"> {{ range $_, $id := $.model.Sorted }} {{ $a := index $.model.Agents $id }} <div id="author-{{ $id }}" class="p-6 scroll-mt-8 author-section"> {{ template "_akteur" $a }} </div> {{ end }} + </div> </div> </div> -</div> \ No newline at end of file +</div> diff --git a/views/routes/components/_scrollspy_layout.gohtml b/views/routes/components/_scrollspy_layout.gohtml index cc65085..8d20240 100644 --- a/views/routes/components/_scrollspy_layout.gohtml +++ b/views/routes/components/_scrollspy_layout.gohtml @@ -4,9 +4,9 @@ {{- $sorted := .Sorted -}} <div class="hidden 2xl:block w-96 flex-shrink-0"> - <div class="sticky top-0 max-h-screen bg-white rounded py-4 flex flex-col"> + <div class="sticky top-0 max-h-screen flex flex-col"> <!-- Compact header for 2xl+ screens --> - <div class="px-3 pb-4 border-b border-gray-200 mb-4"> + <div class="px-3 pb-4 border-b border-gray-200 bg-slate-50 rounded-t py-8"> {{ if eq .Search "autoren" }} <h2 class="text-2xl font-bold font-serif text-gray-900 mb-1">Autor:innen</h2> <p class="text-base text-gray-600 mb-3">Personen, die Beiträge in der Zeitung verfasst haben</p> @@ -47,7 +47,7 @@ </div> </div> - <nav class="flex-1 overflow-y-auto overscroll-contain relative" id="scrollspy-nav"> + <nav class="flex-1 py-4 overflow-y-auto overscroll-contain relative bg-white rounded-b" id="scrollspy-nav"> <!-- Sliding red background element --> <div id="scrollspy-slider" class="absolute bg-red-100 rounded-sm transition-all duration-300 ease-out opacity-0 z-0" style="width: calc(100% - 1.5rem); height: 0; top: 0; left: 0.75rem;"></div> diff --git a/views/routes/components/_unified_piece_entry.gohtml b/views/routes/components/_unified_piece_entry.gohtml index f4b7b38..d29331c 100644 --- a/views/routes/components/_unified_piece_entry.gohtml +++ b/views/routes/components/_unified_piece_entry.gohtml @@ -126,7 +126,7 @@ {{- $placeObj := GetPlace $placeRef.Ref -}} {{- if gt (len $placeObj.Names) 0 -}} {{- $placeName := index $placeObj.Names 0 -}} - {{- $placeTag = printf "%s <a href=\"/ort/%s\"><span class=\"place-tag inline-block bg-slate-200 text-slate-700 text-xs px-2 py-0.5 rounded-md whitespace-nowrap\">%s</span></a>" $placeTag $placeObj.ID $placeName -}} + {{- $placeTag = printf "%s <a href=\"/ort/%s\" class=\"ml-0\"><span class=\"place-tag inline-block bg-slate-200 text-slate-700 text-xs px-2 py-0.5 rounded-md whitespace-nowrap hover:bg-slate-300 hover:text-slate-800 transition-colors duration-150\">%s</span></a>" $placeTag $placeObj.ID $placeName -}} {{- end -}} {{- end -}} {{- end -}} @@ -134,7 +134,7 @@ {{- /* Author prefix for colon format (place view) */ -}} {{- $colonPrefix := "" -}} {{- if $useColonFormat -}} - {{- $colonPrefix = ": " -}} + {{- $colonPrefix = ":" -}} {{- else -}} {{- $colonPrefix = " mit " -}} {{- end -}} @@ -561,7 +561,7 @@ {{- end -}} {{- if gt (len $authorElements) 0 -}} {{- if $title }}: <em>{{ $title }}</em>{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} + {{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} <a href="/akteure/{{ $workAuthorID }}" class="author-link text-slate-700 hover:text-slate-900 underline decoration-slate-400 hover:decoration-slate-600">{{ $workAuthorName }}</a>, {{ end }}<em class="work-title" data-short-title="{{ $workTitle }}" @@ -570,7 +570,7 @@ {{ end }} {{- else -}} {{- if $title }}<em>{{ $title }}</em>{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} + {{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} <a href="/akteure/{{ $workAuthorID }}" class="author-link text-slate-700 hover:text-slate-900 underline decoration-slate-400 hover:decoration-slate-600">{{ $workAuthorName }}</a>, {{ end }}<em class="work-title" data-short-title="{{ $workTitle }}" @@ -580,7 +580,7 @@ {{- end -}}{{ Safe $placeTag }} {{- else -}} {{ Safe $fortsPrefix }}{{ if $title }}<em>{{ $title }}</em>{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} + {{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} <a href="/akteure/{{ $workAuthorID }}" class="author-link text-slate-700 hover:text-slate-900 underline decoration-slate-400 hover:decoration-slate-600">{{ $workAuthorName }}</a>, {{ end }}<em class="work-title" data-short-title="{{ $workTitle }}" @@ -590,7 +590,7 @@ {{- end -}} {{- else -}} {{ Safe $fortsPrefix }}{{ if $title }}<em>{{ $title }}</em>{{ end }}{{ if $workTitle }} - {{ if $title }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} + {{ if and $title (not $categoryFlags.Uebersetzung) }}, {{ end }}{{ if $categoryFlags.Uebersetzung }}Übersetzung aus:{{ else }}Auszug aus:{{ end }} {{ if $workAuthorName }} <a href="/akteure/{{ $workAuthorID }}" class="author-link text-slate-700 hover:text-slate-900 underline decoration-slate-400 hover:decoration-slate-600">{{ $workAuthorName }}</a>, {{ end }}<em class="work-title" data-short-title="{{ $workTitle }}" diff --git a/views/routes/filter/body.gohtml b/views/routes/filter/body.gohtml index 1a49fca..b8ec23b 100644 --- a/views/routes/filter/body.gohtml +++ b/views/routes/filter/body.gohtml @@ -1,8 +1,8 @@ <div class="flex flex-row justify-center gap-4 h-96" id="filter"> - <div class="p-4 w-full max-w-md flex flex-col h-full"> + <div class="p-4 w-full max-w-sm flex flex-col h-full"> <h3 class="text-lg font-semibold text-slate-800 mb-4 flex items-center gap-2"> <i class="ri-calendar-line text-slate-600"></i> - Auswahl nach Datum, Nummer od. Seite + Nach Datum, Nummer oder Seite </h3> <!-- Unified Year Jump Filter --> @@ -54,11 +54,11 @@ </year-jump-filter> </div> - <div class="p-4 w-full max-w-md flex flex-col h-full"> + <div class="p-4 w-full max-w-sm flex flex-col h-full"> <h3 class="text-lg font-semibold text-slate-800 mb-4 flex items-center justify-between"> <div class="flex items-center gap-2"> <i class="ri-user-line text-slate-600"></i> - Auswahl nach Person + Nach Person </div> <div class="flex items-center gap-1"> <i class="ri-arrow-right-line"></i> @@ -123,11 +123,11 @@ </person-jump-filter> </div> - <div class="p-4 w-full max-w-md flex flex-col h-full"> + <div class="p-4 w-full max-w-sm flex flex-col h-full"> <h3 class="text-lg font-semibold text-slate-800 mb-4 flex items-center justify-between"> <div class="flex items-center gap-2"> <i class="ri-map-pin-line text-slate-600"></i> - Auswahl nach Ort + Nach Ort </div> <div class="flex items-center gap-1"> <i class="ri-arrow-right-line"></i> @@ -169,5 +169,49 @@ </div> </place-jump-filter> </div> + + <div class="p-4 w-full max-w-sm flex flex-col h-full"> + <h3 class="text-lg font-semibold text-slate-800 mb-4 flex items-center justify-between"> + <div class="flex items-center gap-2"> + <i class="ri-price-tag-3-line text-slate-600"></i> + Nach Kategorie + </div> + <div class="flex items-center gap-1"> + <i class="ri-arrow-right-line"></i> + <a href="/kategorie/" class="text-sm text-slate-600 hover:underline">Kategorien</a> + </div> + </h3> + + <!-- Category Jump Filter --> + <category-jump-filter class="flex-1 flex flex-col min-h-0"> + <div class="space-y-3 flex flex-col h-full"> + <div class="flex items-center gap-2"> + <label for="category-search" class="hidden text-sm text-slate-600 w-16">Filter</label> + <input + type="text" + id="category-search" + placeholder="Kategorie eingeben..." + autocomplete="off" + class="flex-1 px-2 py-1 border border-slate-300 rounded text-sm bg-white focus:outline-none focus:ring-1 focus:ring-blue-400 focus:border-blue-400" + > + </div> + + <div class="flex-1 min-h-0 overflow-y-auto border border-slate-300 rounded bg-white text-sm"> + <!-- All Categories List --> + <div id="all-categories"> + {{ range $category := .Categories }} + <div class="category-item odd:bg-slate-50 even:bg-white"> + <a href="/kategorie/{{ $category.ID }}" class="block px-2 py-1 hover:bg-blue-50 border-b border-slate-100 last:border-b-0"> + <span class="category-name font-medium text-slate-800">{{ $category.Name }}</span> + <span class="text-xs text-slate-400 ml-2">ab {{ $category.FirstYear }}</span> + </a> + </div> + {{ end }} + </div> + </div> + + </div> + </category-jump-filter> + </div> </div> diff --git a/views/routes/kategorie/body.gohtml b/views/routes/kategorie/body.gohtml deleted file mode 100644 index e69de29..0000000 diff --git a/views/routes/kategorie/head.gohtml b/views/routes/kategorie/head.gohtml deleted file mode 100644 index e69de29..0000000 diff --git a/views/routes/kategorie/list/body.gohtml b/views/routes/kategorie/list/body.gohtml new file mode 100644 index 0000000..36fdbdd --- /dev/null +++ b/views/routes/kategorie/list/body.gohtml @@ -0,0 +1,101 @@ +{{- /* Categories list page body */ -}} +<div class="grid grid-cols-1 lg:grid-cols-4 gap-6"> + {{- /* Main content */ -}} + <div class="lg:col-span-3"> + {{- /* Categories grid */ -}} + <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 mt-6"> + {{- range $categoryID := .model.Sorted -}} + {{- $categoryData := index $.model.Categories $categoryID -}} + {{- $category := $categoryData.Category -}} + {{- $readable := $categoryData.Readable -}} + <div class="bg-white rounded p-4 hover:bg-slate-50 transition-colors duration-200" + data-filter-item + data-category-name="{{ if $category.Names }}{{ index $category.Names 0 }}{{ else }}{{ $category.ID }}{{ end }}" + data-category-description="{{ if $readable.Annotations }}{{ $readable.Annotations | html }}{{ end }}{{ if $readable.Notes }} {{ $readable.Notes | html }}{{ end }}"> + <div class="mb-3"> + <h2 class="text-lg font-medium mb-1 text-slate-900"> + {{ if $category.Names }}{{ index $category.Names 0 }}{{ else }}{{ $category.ID }}{{ end }} + </h2> + <p class="text-sm text-slate-500"> + {{ $categoryData.PieceCount }} {{ if eq $categoryData.PieceCount 1 }}Beitrag{{ else }}Beiträge{{ end }} + </p> + </div> + + {{- /* Show category annotations and notes */ -}} + {{- if $readable.AnnotationsHTML -}} + <div class="text-sm text-slate-700 mb-2"> + {{- range $annotation := $readable.AnnotationsHTML -}} + {{ $annotation }} + {{- end -}} + </div> + {{- end -}} + {{- if $readable.NotesHTML -}} + <div class="text-sm text-slate-600 italic"> + {{- range $note := $readable.NotesHTML -}} + {{ $note }} + {{- end -}} + </div> + {{- end -}} + + {{- /* Available years */ -}} + {{- if $categoryData.AvailableYears -}} + <div class="mt-3 pt-2 border-t border-slate-100"> + <div class="flex flex-wrap gap-1"> + {{- range $yearData := $categoryData.AvailableYears -}} + <a href="/kategorie/{{ $category.ID }}/{{ $yearData.Year }}" + class="inline-block px-2 py-1 text-xs bg-blue-100 text-blue-700 rounded hover:bg-blue-200 hover:text-blue-800 transition-colors duration-150" + title="{{ $yearData.PieceCount }} {{ if eq $yearData.PieceCount 1 }}Beitrag{{ else }}Beiträge{{ end }}"> + {{ $yearData.Year }} + </a> + {{- end -}} + </div> + </div> + {{- end -}} + </div> + {{- end -}} + </div> + </div> + + {{- /* Sidebar */ -}} + <div class="lg:col-span-1 sticky top-0 self-start"> + <div class="bg-slate-50 p-6 filter-sidebar"> + <h1 class="text-2xl font-bold text-slate-800 mb-4">Kategorien</h1> + + <p class="text-slate-600 mb-6"> + Verzeichnis aller Kategorien von Beiträgen in der Königsberger Gelehrten und Politischen Zeitung + </p> + + {{- /* Search Filter */ -}} + <div class="mb-4"> + <generic-filter + placeholder="Kategorien durchsuchen..." + item-selector="[data-filter-item]" + search-attributes="data-category-name,data-category-description" + count-selector="[data-filter-count]" + item-type="Kategorien" + item-type-singular="Kategorie"> + </generic-filter> + </div> + + <div class="text-sm text-slate-700 mb-4" data-filter-count> + {{ len .model.Categories }} Kategorien + </div> + </div> + + {{- /* Statistics */ -}} + <div class="bg-slate-50 border border-slate-200 rounded-lg p-4 mt-4"> + <div class="text-sm text-slate-700"> + <p class="mb-2"> + <span class="font-medium">{{ len .model.Categories }}</span> Kategorien verfügbar + </p> + {{- $totalPieces := 0 -}} + {{- range $categoryData := .model.Categories -}} + {{- $totalPieces = add $totalPieces $categoryData.PieceCount -}} + {{- end -}} + <p> + <span class="font-medium">{{ $totalPieces }}</span> Beiträge insgesamt + </p> + </div> + </div> + </div> +</div> \ No newline at end of file diff --git a/views/routes/kategorie/list/head.gohtml b/views/routes/kategorie/list/head.gohtml new file mode 100644 index 0000000..0f8d10f --- /dev/null +++ b/views/routes/kategorie/list/head.gohtml @@ -0,0 +1,3 @@ +{{- /* Head template for categories list page */ -}} +<title>Kategorien — KGPZ Digital + \ No newline at end of file diff --git a/views/routes/kategorie/pieces/body.gohtml b/views/routes/kategorie/pieces/body.gohtml new file mode 100644 index 0000000..01887c8 --- /dev/null +++ b/views/routes/kategorie/pieces/body.gohtml @@ -0,0 +1,153 @@ +{{- /* Category pieces page body - matches single place view layout */ -}} + +
+ {{- /* Year Navigation with Back Button - Outside main content box */ -}} + {{- if .model.AvailableYears -}} +
+
+
+ {{- /* Back Navigation */ -}} + + + {{- /* Year Navigation */ -}} +
+ {{- range $yearData := .model.AvailableYears -}} + {{- if eq $yearData.Year $.model.Year -}} + + {{ $yearData.Year }} + {{- else -}} + + {{ $yearData.Year }} + {{- end -}} + {{- end -}} +
+
+
+
+ {{- else -}} + {{- /* Fallback: Just back navigation if no years available */ -}} + + {{- end -}} + +
+ + {{- /* Category Header */ -}} +
+
+
+

+ {{ index .model.Category.Names 0 }} +

+ + {{- /* Category description */ -}} + {{- if .model.CategoryReadable.AnnotationsHTML -}} +
+ {{- range $annotation := .model.CategoryReadable.AnnotationsHTML -}} +
{{ $annotation }}
+ {{- end -}} +
+ {{- end -}} + +

+ {{ .model.PieceCount }} + {{ if eq .model.PieceCount 1 }}Beitrag{{ else }}Beiträge{{ end }} + in der Kategorie „{{ index .model.Category.Names 0 }}" aus dem Jahr {{ .model.Year }} +

+
+
+
+ + {{- /* Pieces List */ -}} +
+

+ Beiträge ({{ .model.PieceCount }}) +

+ + {{- if .model.Pieces -}} +
+
+

{{ .model.Year }}

+ +
+ {{- /* Group pieces by title within the year */ -}} + {{- $groupedPieces := dict -}} + {{- range $_, $p := .model.Pieces -}} + {{- $groupKey := "" -}} + {{- if $p.Title -}} + {{- $groupKey = index $p.Title 0 -}} + {{- else if $p.Incipit -}} + {{- $groupKey = index $p.Incipit 0 -}} + {{- else -}} + {{- $groupKey = printf "untitled-%s" $p.ID -}} + {{- end -}} + + {{- $existing := index $groupedPieces $groupKey -}} + {{- if $existing -}} + {{- $groupedPieces = merge $groupedPieces (dict $groupKey (append $existing $p)) -}} + {{- else -}} + {{- $groupedPieces = merge $groupedPieces (dict $groupKey (slice $p)) -}} + {{- end -}} + {{- end -}} + + {{- range $groupKey, $groupedItems := $groupedPieces -}} +
+
+ {{- /* Use first piece for display text with colon format for places */ -}} + {{ template "_unified_piece_entry" (dict "Piece" (index $groupedItems 0) "CurrentActorID" "" "DisplayMode" "place" "ShowPlaceTags" false "UseColonFormat" true "ShowContinuation" false) }} + + {{- /* Show all citations from all pieces in this group inline with commas */ -}} + {{ " " }}{{- range $groupIndex, $groupItem := $groupedItems -}} + {{- range $issueIndex, $issue := $groupItem.IssueRefs -}} + {{- /* Only show citations for the current year */ -}} + {{- if eq $issue.When.Year $.model.Year -}} + {{- if or (gt $groupIndex 0) (gt $issueIndex 0) }}, {{ end -}} + {{- template "_citation" $issue -}} + {{- end -}} + {{- end -}} + {{- end -}} + + {{- /* Add "Ganzer Beitrag" link if piece spans multiple issues */ -}} + {{- $firstGroupItem := index $groupedItems 0 -}} + {{- if gt (len $firstGroupItem.IssueRefs) 1 -}} + {{ " " }} + {{- end }} +
+
+ {{- end -}} +
+
+
+ {{- else -}} +
+
+ + + +
+

Keine Beiträge gefunden

+

+ Für die Kategorie „{{ index .model.Category.Names 0 }}" wurden im Jahr {{ .model.Year }} keine Beiträge gefunden. +

+
+ {{- end -}} +
+
\ No newline at end of file diff --git a/views/routes/kategorie/pieces/head.gohtml b/views/routes/kategorie/pieces/head.gohtml new file mode 100644 index 0000000..933c097 --- /dev/null +++ b/views/routes/kategorie/pieces/head.gohtml @@ -0,0 +1,3 @@ +{{- /* Head template for category pieces page */ -}} +Kategorie „{{ index .model.Category.Names 0 }}" {{ .model.Year }} — KGPZ Digital + \ No newline at end of file diff --git a/views/routes/ort/components/_place_card.gohtml b/views/routes/ort/components/_place_card.gohtml index d276d33..8028ae3 100644 --- a/views/routes/ort/components/_place_card.gohtml +++ b/views/routes/ort/components/_place_card.gohtml @@ -7,7 +7,7 @@ {{ $mainPlaceName = .ID }} {{ end }} {{ $modernName := GetModernPlaceName .Geo $mainPlaceName }} -
+
diff --git a/views/routes/ort/overview/body.gohtml b/views/routes/ort/overview/body.gohtml index d6cede3..012a7b7 100644 --- a/views/routes/ort/overview/body.gohtml +++ b/views/routes/ort/overview/body.gohtml @@ -1,27 +1,73 @@ - -
-
-

Orte

- - +{{- /* Places overview page body */ -}} +
+ {{- /* Main content */ -}} +
+ {{- /* Places grid */ -}} {{ if .model.Places }} -
- - - -

- Alle Orte ({{ len .model.Places }}) -

- -
- {{ range $placeID := .model.Sorted }} - {{ $place := index $.model.Places $placeID }} - {{ template "_place_card" $place }} - {{ end }} -
+
+ {{ range $placeID := .model.Sorted }} + {{ $place := index $.model.Places $placeID }} + {{ template "_place_card" $place }} + {{ end }}
{{ else }} -

Keine Orte gefunden.

+
+
+ + + + +
+

Keine Orte gefunden

+

Es wurden keine Orte in der Datenbank gefunden.

+
{{ end }}
+ + {{- /* Sidebar */ -}} +
+
+

Orte

+ +

+ Verzeichnis aller in der Zeitung erwähnten Orte und Lokalitäten +

+ + {{- /* Search Filter */ -}} +
+ + +
+ +
+ Alle Orte ({{ len .model.Places }}) +
+
+ + {{- /* Statistics */ -}} +
+
+
+ Orte gesamt: + {{ len .model.Places }} +
+
+ Beiträge mit Ort: + {{ .model.TotalPiecesWithPlaces }} +
+ {{- if .model.SelectedPlace -}} +
+ Beiträge hier: + {{ len .model.SelectedPlace.Pieces }} +
+ {{- end -}} +
+
+
\ No newline at end of file diff --git a/views/transform/generic-filter.js b/views/transform/generic-filter.js new file mode 100644 index 0000000..334ff6a --- /dev/null +++ b/views/transform/generic-filter.js @@ -0,0 +1,147 @@ +/** + * Generic Filter Web Component + * Provides search functionality for filtering cards/items in lists + * Can be configured for different types of content (places, categories, etc.) + */ +export class GenericFilter extends HTMLElement { + constructor() { + super(); + this.searchInput = null; + this.itemCards = []; + this.countElement = null; + this.debounceTimer = null; + this.originalCount = 0; + } + + connectedCallback() { + // Configuration attributes + this.placeholderText = this.getAttribute('placeholder') || 'Suchen...'; + this.itemSelector = this.getAttribute('item-selector') || '[data-filter-item]'; + this.searchAttributes = (this.getAttribute('search-attributes') || 'data-filter-text').split(','); + this.countSelector = this.getAttribute('count-selector') || '[data-filter-count]'; + this.itemType = this.getAttribute('item-type') || 'Einträge'; + this.itemTypeSingular = this.getAttribute('item-type-singular') || 'Eintrag'; + + this.render(); + this.setupEventListeners(); + this.initializeItems(); + } + + + disconnectedCallback() { + this.cleanupEventListeners(); + if (this.debounceTimer) { + clearTimeout(this.debounceTimer); + } + } + + render() { + this.innerHTML = ` +
+ +
+ `; + } + + setupEventListeners() { + this.searchInput = this.querySelector('#generic-search'); + if (this.searchInput) { + this.searchInput.addEventListener('input', this.handleSearchInput.bind(this)); + } + } + + cleanupEventListeners() { + if (this.searchInput) { + this.searchInput.removeEventListener('input', this.handleSearchInput.bind(this)); + } + } + + initializeItems() { + // Find all items and the count element using semantic containers + this.itemCards = Array.from(document.querySelectorAll(this.itemSelector)); + + // Count element should be in the same semantic container as the filter + const filterContainer = this.closest('.filter-sidebar') || this.closest('.sidebar') || document; + this.countElement = filterContainer.querySelector(this.countSelector); + + console.log('GenericFilter initialized:', { + itemSelector: this.itemSelector, + itemsFound: this.itemCards.length, + countElement: this.countElement, + searchAttributes: this.searchAttributes + }); + + if (this.countElement) { + this.originalCount = this.itemCards.length; + } + } + + handleSearchInput(event) { + // Clear previous debounce timer + if (this.debounceTimer) { + clearTimeout(this.debounceTimer); + } + + // Debounce the search to avoid excessive filtering + this.debounceTimer = setTimeout(() => { + this.filterItems(event.target.value.trim()); + }, 150); + } + + filterItems(searchTerm) { + if (!this.itemCards.length) return; + + const normalizedSearch = searchTerm.toLowerCase(); + let visibleCount = 0; + + this.itemCards.forEach(card => { + let isMatch = searchTerm === ''; + + // Check all configured search attributes + if (!isMatch) { + for (const attr of this.searchAttributes) { + const attrValue = card.getAttribute(attr.trim())?.toLowerCase() || ''; + if (attrValue.includes(normalizedSearch)) { + isMatch = true; + break; + } + } + } + + if (isMatch) { + card.style.display = ''; + visibleCount++; + } else { + card.style.display = 'none'; + } + }); + + // Update the count display + this.updateCountDisplay(visibleCount, searchTerm); + } + + updateCountDisplay(visibleCount, searchTerm) { + if (!this.countElement) return; + + if (searchTerm === '') { + // Show original count when no search + this.countElement.textContent = `Alle ${this.itemType} (${this.originalCount})`; + } else if (visibleCount === 0) { + // Show no results message + this.countElement.textContent = `Keine ${this.itemType} gefunden für "${searchTerm}"`; + } else { + // Show filtered count + const itemTypeText = visibleCount === 1 ? this.itemTypeSingular : this.itemType; + this.countElement.textContent = `${visibleCount} von ${this.originalCount} ${itemTypeText}`; + } + } +} + +// Register the custom element +customElements.define('generic-filter', GenericFilter); \ No newline at end of file diff --git a/views/transform/main.js b/views/transform/main.js index 4a627ab..02c8751 100644 --- a/views/transform/main.js +++ b/views/transform/main.js @@ -2,6 +2,7 @@ import "./site.css"; import "./search.js"; import "./akteure.js"; import "./places.js"; +import "./generic-filter.js"; import { SinglePageViewer } from "./single-page-viewer.js"; import { ScrollToTopButton } from "./scroll-to-top.js"; import { InhaltsverzeichnisScrollspy } from "./inhaltsverzeichnis-scrollspy.js"; diff --git a/views/transform/search.js b/views/transform/search.js index 7d85ef9..bcca6b8 100644 --- a/views/transform/search.js +++ b/views/transform/search.js @@ -13,418 +13,409 @@ document.body.addEventListener("htmx:configRequest", function (event) { * Works with server-rendered person list and provides client-side filtering */ class PersonJumpFilter extends HTMLElement { - constructor() { - super(); - } + constructor() { + super(); + } - connectedCallback() { - this.setupEventListeners(); - } + connectedCallback() { + this.setupEventListeners(); + } - setupEventListeners() { - const searchInput = this.querySelector('#person-search'); - const authorsCheckbox = this.querySelector('#authors-only'); - const allPersonsList = this.querySelector('#all-persons'); - const authorsOnlyList = this.querySelector('#authors-only-list'); + setupEventListeners() { + const searchInput = this.querySelector("#person-search"); + const authorsCheckbox = this.querySelector("#authors-only"); + const allPersonsList = this.querySelector("#all-persons"); + const authorsOnlyList = this.querySelector("#authors-only-list"); - if (!searchInput || !authorsCheckbox || !allPersonsList || !authorsOnlyList) { - return; - } + if (!searchInput || !authorsCheckbox || !allPersonsList || !authorsOnlyList) { + return; + } - // Search functionality - searchInput.addEventListener('input', (e) => { - const query = e.target.value.toLowerCase().trim(); - this.filterPersons(query); - }); + // Search functionality + searchInput.addEventListener("input", (e) => { + const query = e.target.value.toLowerCase().trim(); + this.filterPersons(query); + }); - // Checkbox functionality - authorsCheckbox.addEventListener('change', () => { - this.togglePersonsList(); - // Clear and re-apply search filter - const query = searchInput.value.toLowerCase().trim(); - this.filterPersons(query); - }); - } + // Checkbox functionality + authorsCheckbox.addEventListener("change", () => { + this.togglePersonsList(); + // Clear and re-apply search filter + const query = searchInput.value.toLowerCase().trim(); + this.filterPersons(query); + }); + } - togglePersonsList() { - const authorsCheckbox = this.querySelector('#authors-only'); - const allPersonsList = this.querySelector('#all-persons'); - const authorsOnlyList = this.querySelector('#authors-only-list'); + togglePersonsList() { + const authorsCheckbox = this.querySelector("#authors-only"); + const allPersonsList = this.querySelector("#all-persons"); + const authorsOnlyList = this.querySelector("#authors-only-list"); - if (!authorsCheckbox || !allPersonsList || !authorsOnlyList) { - return; - } + if (!authorsCheckbox || !allPersonsList || !authorsOnlyList) { + return; + } - if (authorsCheckbox.checked) { - allPersonsList.style.display = 'none'; - authorsOnlyList.style.display = 'block'; - } else { - allPersonsList.style.display = 'block'; - authorsOnlyList.style.display = 'none'; - } - } + if (authorsCheckbox.checked) { + allPersonsList.style.display = "none"; + authorsOnlyList.style.display = "block"; + } else { + allPersonsList.style.display = "block"; + authorsOnlyList.style.display = "none"; + } + } - filterPersons(query) { - // Filter items in the currently visible list - const authorsCheckbox = this.querySelector('#authors-only'); - const currentList = authorsCheckbox?.checked ? - this.querySelector('#authors-only-list') : - this.querySelector('#all-persons'); + filterPersons(query) { + // Filter items in the currently visible list + const authorsCheckbox = this.querySelector("#authors-only"); + const currentList = authorsCheckbox?.checked + ? this.querySelector("#authors-only-list") + : this.querySelector("#all-persons"); - if (!currentList) { - return; - } + if (!currentList) { + return; + } - const personItems = currentList.querySelectorAll('.person-item'); + const personItems = currentList.querySelectorAll(".person-item"); - personItems.forEach(item => { - const name = item.querySelector('.person-name')?.textContent || ''; - const life = item.querySelector('.person-life')?.textContent || ''; + personItems.forEach((item) => { + const name = item.querySelector(".person-name")?.textContent || ""; + const life = item.querySelector(".person-life")?.textContent || ""; - const matches = !query || - name.toLowerCase().includes(query) || - life.toLowerCase().includes(query); + const matches = + !query || name.toLowerCase().includes(query) || life.toLowerCase().includes(query); - if (matches) { - item.style.display = 'block'; - } else { - item.style.display = 'none'; - } - }); - } + if (matches) { + item.style.display = "block"; + } else { + item.style.display = "none"; + } + }); + } } // Register the custom element -customElements.define('person-jump-filter', PersonJumpFilter); +customElements.define("person-jump-filter", PersonJumpFilter); /** * PlaceJumpFilter - Web component for filtering places list - * Works with server-rendered place list and provides client-side filtering */ class PlaceJumpFilter extends HTMLElement { - constructor() { - super(); - } + connectedCallback() { + const searchInput = this.querySelector("#place-search"); + if (searchInput) { + searchInput.addEventListener("input", (e) => { + const query = e.target.value.toLowerCase().trim(); + const placeItems = this.querySelectorAll(".place-item"); - connectedCallback() { - this.setupEventListeners(); - } - - setupEventListeners() { - const searchInput = this.querySelector('#place-search'); - const allPlacesList = this.querySelector('#all-places'); - - if (!searchInput || !allPlacesList) { - return; - } - - // Search functionality - searchInput.addEventListener('input', (e) => { - const query = e.target.value.toLowerCase().trim(); - this.filterPlaces(query); - }); - } - - filterPlaces(query) { - const allPlacesList = this.querySelector('#all-places'); - - if (!allPlacesList) { - return; - } - - const placeItems = allPlacesList.querySelectorAll('.place-item'); - - placeItems.forEach(item => { - const name = item.querySelector('.place-name')?.textContent || ''; - - const matches = !query || name.toLowerCase().includes(query); - - if (matches) { - item.style.display = 'block'; - } else { - item.style.display = 'none'; - } - }); - } + placeItems.forEach((item) => { + const name = item.querySelector(".place-name")?.textContent || ""; + const matches = !query || name.toLowerCase().includes(query); + item.style.display = matches ? "block" : "none"; + }); + }); + } + } } -// Register the custom element -customElements.define('place-jump-filter', PlaceJumpFilter); +customElements.define("place-jump-filter", PlaceJumpFilter); + +/** + * CategoryJumpFilter - Web component for filtering categories list + */ +class CategoryJumpFilter extends HTMLElement { + connectedCallback() { + const searchInput = this.querySelector("#category-search"); + if (searchInput) { + searchInput.addEventListener("input", (e) => { + const query = e.target.value.toLowerCase().trim(); + const categoryItems = this.querySelectorAll(".category-item"); + + categoryItems.forEach((item) => { + const name = item.querySelector(".category-name")?.textContent || ""; + const matches = !query || name.toLowerCase().includes(query); + item.style.display = matches ? "block" : "none"; + }); + }); + } + } +} + +customElements.define("category-jump-filter", CategoryJumpFilter); /** * YearJumpFilter - Unified web component for Jahr-based navigation * Allows jumping by Jahr/Ausgabe or Jahr/Seite */ class YearJumpFilter extends HTMLElement { - constructor() { - super(); - this.issuesByYear = {}; - } + constructor() { + super(); + this.issuesByYear = {}; + } - connectedCallback() { - this.parseIssuesData(); - this.setupEventListeners(); - } + connectedCallback() { + this.parseIssuesData(); + this.setupEventListeners(); + } - parseIssuesData() { - // Parse issues data from data attributes - const issuesData = this.dataset.issues; - if (issuesData) { - try { - this.issuesByYear = JSON.parse(issuesData); - } catch (e) { - console.error('Failed to parse issues data:', e); - } - } - } + parseIssuesData() { + // Parse issues data from data attributes + const issuesData = this.dataset.issues; + if (issuesData) { + try { + this.issuesByYear = JSON.parse(issuesData); + } catch (e) { + console.error("Failed to parse issues data:", e); + } + } + } - setupEventListeners() { - const yearSelect = this.querySelector('#year-select'); - const issueNumberSelect = this.querySelector('#issue-number-select'); - const issueDateSelect = this.querySelector('#issue-date-select'); - const pageInput = this.querySelector('#page-input'); - const pageJumpBtn = this.querySelector('#page-jump-btn'); + setupEventListeners() { + const yearSelect = this.querySelector("#year-select"); + const issueNumberSelect = this.querySelector("#issue-number-select"); + const issueDateSelect = this.querySelector("#issue-date-select"); + const pageInput = this.querySelector("#page-input"); + const pageJumpBtn = this.querySelector("#page-jump-btn"); - if (!yearSelect) { - return; - } + if (!yearSelect) { + return; + } - // Year selection change handler - yearSelect.addEventListener('change', () => { - this.updateIssueOptions(); - this.updatePageInputState(); - this.clearPageErrors(); - }); + // Year selection change handler + yearSelect.addEventListener("change", () => { + this.updateIssueOptions(); + this.updatePageInputState(); + this.clearPageErrors(); + }); - // Issue number selection change handler - jump immediately - if (issueNumberSelect) { - issueNumberSelect.addEventListener('change', () => { - const year = yearSelect.value; - const issueNum = issueNumberSelect.value; - if (year && issueNum) { - window.location.href = `/${year}/${issueNum}`; - } - }); - } + // Issue number selection change handler - jump immediately + if (issueNumberSelect) { + issueNumberSelect.addEventListener("change", () => { + const year = yearSelect.value; + const issueNum = issueNumberSelect.value; + if (year && issueNum) { + window.location.href = `/${year}/${issueNum}`; + } + }); + } - // Issue date selection change handler - jump immediately - if (issueDateSelect) { - issueDateSelect.addEventListener('change', () => { - const year = yearSelect.value; - const issueNum = issueDateSelect.value; // value contains issue number - if (year && issueNum) { - window.location.href = `/${year}/${issueNum}`; - } - }); - } + // Issue date selection change handler - jump immediately + if (issueDateSelect) { + issueDateSelect.addEventListener("change", () => { + const year = yearSelect.value; + const issueNum = issueDateSelect.value; // value contains issue number + if (year && issueNum) { + window.location.href = `/${year}/${issueNum}`; + } + }); + } - // Page input handlers - if (pageInput) { - pageInput.addEventListener('input', () => { - this.updatePageJumpButton(); - this.clearPageErrors(); - }); + // Page input handlers + if (pageInput) { + pageInput.addEventListener("input", () => { + this.updatePageJumpButton(); + this.clearPageErrors(); + }); - // Handle Enter key in page input - pageInput.addEventListener('keydown', (e) => { - if (e.key === 'Enter') { - e.preventDefault(); - this.handlePageJump(); - } - }); - } + // Handle Enter key in page input + pageInput.addEventListener("keydown", (e) => { + if (e.key === "Enter") { + e.preventDefault(); + this.handlePageJump(); + } + }); + } - // Page jump button - if (pageJumpBtn) { - pageJumpBtn.addEventListener('click', () => { - this.handlePageJump(); - }); - } + // Page jump button + if (pageJumpBtn) { + pageJumpBtn.addEventListener("click", () => { + this.handlePageJump(); + }); + } - // Page jump form submission - const pageForm = this.querySelector('#page-jump-form'); - if (pageForm) { - pageForm.addEventListener('submit', (e) => { - e.preventDefault(); - this.handlePageJump(); - }); - } + // Page jump form submission + const pageForm = this.querySelector("#page-jump-form"); + if (pageForm) { + pageForm.addEventListener("submit", (e) => { + e.preventDefault(); + this.handlePageJump(); + }); + } - // Initialize everything - this.updateIssueOptions(); - this.updatePageInputState(); - this.updatePageJumpButton(); - } + // Initialize everything + this.updateIssueOptions(); + this.updatePageInputState(); + this.updatePageJumpButton(); + } - updateIssueOptions() { - const yearSelect = this.querySelector('#year-select'); - const issueNumberSelect = this.querySelector('#issue-number-select'); - const issueDateSelect = this.querySelector('#issue-date-select'); + updateIssueOptions() { + const yearSelect = this.querySelector("#year-select"); + const issueNumberSelect = this.querySelector("#issue-number-select"); + const issueDateSelect = this.querySelector("#issue-date-select"); - if (!yearSelect || !issueNumberSelect || !issueDateSelect) { - return; - } + if (!yearSelect || !issueNumberSelect || !issueDateSelect) { + return; + } - const selectedYear = yearSelect.value; - const issues = this.issuesByYear[selectedYear] || []; + const selectedYear = yearSelect.value; + const issues = this.issuesByYear[selectedYear] || []; - // Clear existing options - issueNumberSelect.innerHTML = ''; - issueDateSelect.innerHTML = ''; + // Clear existing options + issueNumberSelect.innerHTML = ''; + issueDateSelect.innerHTML = ''; - // Add options for selected year - issues.forEach(issue => { - // Issue number select - just the number - const numberOption = document.createElement('option'); - numberOption.value = issue.number; - numberOption.textContent = issue.number; - issueNumberSelect.appendChild(numberOption); + // Add options for selected year + issues.forEach((issue) => { + // Issue number select - just the number + const numberOption = document.createElement("option"); + numberOption.value = issue.number; + numberOption.textContent = issue.number; + issueNumberSelect.appendChild(numberOption); - // Issue date select - date with issue number as value - const dateOption = document.createElement('option'); - dateOption.value = issue.number; // value is still issue number for navigation - dateOption.textContent = `${issue.date} [${issue.number}]`; - issueDateSelect.appendChild(dateOption); - }); + // Issue date select - date with issue number as value + const dateOption = document.createElement("option"); + dateOption.value = issue.number; // value is still issue number for navigation + dateOption.textContent = `${issue.date} [${issue.number}]`; + issueDateSelect.appendChild(dateOption); + }); - const hasIssues = issues.length > 0 && selectedYear; - issueNumberSelect.disabled = !hasIssues; - issueDateSelect.disabled = !hasIssues; - } + const hasIssues = issues.length > 0 && selectedYear; + issueNumberSelect.disabled = !hasIssues; + issueDateSelect.disabled = !hasIssues; + } - async handlePageJump() { - const yearSelect = this.querySelector('#year-select'); - const pageInput = this.querySelector('#page-input'); - const errorContainer = this.querySelector('#jump-errors'); + async handlePageJump() { + const yearSelect = this.querySelector("#year-select"); + const pageInput = this.querySelector("#page-input"); + const errorContainer = this.querySelector("#jump-errors"); - if (!yearSelect || !pageInput) { - return; - } + if (!yearSelect || !pageInput) { + return; + } - const year = yearSelect.value; - const page = pageInput.value; + const year = yearSelect.value; + const page = pageInput.value; - if (!year || !page) { - this.showError('Bitte Jahr und Seite auswählen.'); - return; - } + if (!year || !page) { + this.showError("Bitte Jahr und Seite auswählen."); + return; + } - try { - const formData = new FormData(); - formData.append('year', year); - formData.append('page', page); + try { + const formData = new FormData(); + formData.append("year", year); + formData.append("page", page); - const response = await fetch('/jump', { - method: 'POST', - body: formData, - redirect: 'manual' - }); + const response = await fetch("/jump", { + method: "POST", + body: formData, + redirect: "manual", + }); - // Check for HTMX redirect header - const hxRedirect = response.headers.get('HX-Redirect'); - if (hxRedirect) { - window.location.href = hxRedirect; - return; - } + // Check for HTMX redirect header + const hxRedirect = response.headers.get("HX-Redirect"); + if (hxRedirect) { + window.location.href = hxRedirect; + return; + } - if (response.status === 302 || response.status === 301) { - const location = response.headers.get('Location'); - if (location) { - window.location.href = location; - return; - } - } + if (response.status === 302 || response.status === 301) { + const location = response.headers.get("Location"); + if (location) { + window.location.href = location; + return; + } + } - if (response.ok) { - if (errorContainer) { - errorContainer.innerHTML = ''; - } - } else { - const errorText = await response.text(); - if (errorContainer) { - errorContainer.innerHTML = errorText; - } - } - } catch (error) { - console.error('Page jump failed:', error); - this.showError('Fehler beim Suchen der Seite.'); - } - } + if (response.ok) { + if (errorContainer) { + errorContainer.innerHTML = ""; + } + } else { + const errorText = await response.text(); + if (errorContainer) { + errorContainer.innerHTML = errorText; + } + } + } catch (error) { + console.error("Page jump failed:", error); + this.showError("Fehler beim Suchen der Seite."); + } + } - showError(message) { - const errorContainer = this.querySelector('#jump-errors'); - if (errorContainer) { - errorContainer.innerHTML = `
${message}
`; - } - } + showError(message) { + const errorContainer = this.querySelector("#jump-errors"); + if (errorContainer) { + errorContainer.innerHTML = `
${message}
`; + } + } - clearPageErrors() { - const errorContainer = this.querySelector('#jump-errors'); - if (errorContainer) { - errorContainer.innerHTML = ''; - } - } + clearPageErrors() { + const errorContainer = this.querySelector("#jump-errors"); + if (errorContainer) { + errorContainer.innerHTML = ""; + } + } - updatePageInputState() { - const yearSelect = this.querySelector('#year-select'); - const pageInput = this.querySelector('#page-input'); + updatePageInputState() { + const yearSelect = this.querySelector("#year-select"); + const pageInput = this.querySelector("#page-input"); - if (!yearSelect || !pageInput) { - return; - } + if (!yearSelect || !pageInput) { + return; + } - const hasYear = yearSelect.value; - pageInput.disabled = !hasYear; + const hasYear = yearSelect.value; + pageInput.disabled = !hasYear; - if (!hasYear) { - pageInput.value = ''; - this.updatePageJumpButton(); - } - } + if (!hasYear) { + pageInput.value = ""; + this.updatePageJumpButton(); + } + } - updatePageJumpButton() { - const yearSelect = this.querySelector('#year-select'); - const pageInput = this.querySelector('#page-input'); - const pageJumpBtn = this.querySelector('#page-jump-btn'); + updatePageJumpButton() { + const yearSelect = this.querySelector("#year-select"); + const pageInput = this.querySelector("#page-input"); + const pageJumpBtn = this.querySelector("#page-jump-btn"); - if (!yearSelect || !pageInput || !pageJumpBtn) { - return; - } + if (!yearSelect || !pageInput || !pageJumpBtn) { + return; + } - const hasYear = yearSelect.value; - const hasPage = pageInput.value && pageInput.value.trim(); - const shouldEnable = hasYear && hasPage; + const hasYear = yearSelect.value; + const hasPage = pageInput.value && pageInput.value.trim(); + const shouldEnable = hasYear && hasPage; - pageJumpBtn.disabled = !shouldEnable; - } + pageJumpBtn.disabled = !shouldEnable; + } } // Register the custom element -customElements.define('year-jump-filter', YearJumpFilter); +customElements.define("year-jump-filter", YearJumpFilter); /** * SchnellauswahlButton - Web component for the quick selection/filter button * Encapsulates the toggle functionality and HTMX content loading */ class SchnellauswahlButton extends HTMLElement { - constructor() { - super(); - this.isOpen = false; - } + constructor() { + super(); + this.isOpen = false; + } - connectedCallback() { - this.createButton(); - this.setupEventListeners(); - } + connectedCallback() { + this.createButton(); + this.setupEventListeners(); + } - disconnectedCallback() { - // Clean up event listeners when component is removed - document.removeEventListener('click', this.handleOutsideClick); - document.removeEventListener('quickfilter:selection', this.handleSelectionEvent); - } + disconnectedCallback() { + // Clean up event listeners when component is removed + document.removeEventListener("click", this.handleOutsideClick); + document.removeEventListener("quickfilter:selection", this.handleSelectionEvent); + } - createButton() { - this.innerHTML = ` + createButton() { + this.innerHTML = ` `; - } + } - setupEventListeners() { - const button = this.querySelector('button'); - if (button) { - button.addEventListener('click', (e) => { - e.stopPropagation(); - this.toggleFilter(); - }); - } + setupEventListeners() { + const button = this.querySelector("button"); + if (button) { + button.addEventListener("click", (e) => { + e.stopPropagation(); + this.toggleFilter(); + }); + } - // Bind event handlers to maintain 'this' context - this.handleSelectionEvent = this.handleSelectionEvent.bind(this); - this.handleOutsideClick = this.handleOutsideClick.bind(this); + // Bind event handlers to maintain 'this' context + this.handleSelectionEvent = this.handleSelectionEvent.bind(this); + this.handleOutsideClick = this.handleOutsideClick.bind(this); - // Listen for person/place selection events - document.addEventListener('quickfilter:selection', this.handleSelectionEvent); + // Listen for person/place selection events + document.addEventListener("quickfilter:selection", this.handleSelectionEvent); - // Listen for outside clicks - document.addEventListener('click', this.handleOutsideClick); - } + // Listen for outside clicks + document.addEventListener("click", this.handleOutsideClick); + } - toggleFilter() { - const filterContainer = document.getElementById("filter-container"); - const filterButton = this.querySelector('button'); + toggleFilter() { + const filterContainer = document.getElementById("filter-container"); + const filterButton = this.querySelector("button"); - if (!filterContainer || !filterButton) { - return; - } + if (!filterContainer || !filterButton) { + return; + } - const filterContentDiv = filterContainer.querySelector("div.flex.justify-center"); + const filterContentDiv = filterContainer.querySelector("div.flex.justify-center"); - if (filterContainer.classList.contains("hidden")) { - // Show the filter - filterContainer.classList.remove("hidden"); - filterButton.classList.add("bg-slate-200"); - // Change icon to arrow up when open - const filterIcon = this.querySelector('i'); - if (filterIcon) { - filterIcon.className = "ri-arrow-up-line"; - } - this.isOpen = true; + if (filterContainer.classList.contains("hidden")) { + // Show the filter + filterContainer.classList.remove("hidden"); + filterButton.classList.add("bg-slate-200"); + // Change icon to arrow up when open + const filterIcon = this.querySelector("i"); + if (filterIcon) { + filterIcon.className = "ri-arrow-up-line"; + } + this.isOpen = true; - // Load content only if it doesn't exist - check for actual content - const hasContent = filterContentDiv && filterContentDiv.querySelector("div, form, h3"); - if (!hasContent) { - htmx - .ajax("GET", "/filter", { - target: "#filter-container", - select: "#filter", - swap: "innerHTML", - }) - .then(() => { - console.log("HTMX request completed"); - // Re-query the element to see if it changed - const updatedDiv = document.querySelector("#filter-container .flex.justify-center"); - }) - .catch((error) => { - console.log("HTMX request failed:", error); - }); - } - } else { - this.hideFilter(); - } - } + // Load content only if it doesn't exist - check for actual content + const hasContent = filterContentDiv && filterContentDiv.querySelector("div, form, h3"); + if (!hasContent) { + htmx + .ajax("GET", "/filter", { + target: "#filter-container", + select: "#filter", + swap: "innerHTML", + }) + .then(() => { + console.log("HTMX request completed"); + // Re-query the element to see if it changed + const updatedDiv = document.querySelector("#filter-container .flex.justify-center"); + }) + .catch((error) => { + console.log("HTMX request failed:", error); + }); + } + } else { + this.hideFilter(); + } + } - hideFilter() { - const filterContainer = document.getElementById("filter-container"); - const filterButton = this.querySelector('button'); + hideFilter() { + const filterContainer = document.getElementById("filter-container"); + const filterButton = this.querySelector("button"); - if (!filterContainer || !filterButton) { - return; - } + if (!filterContainer || !filterButton) { + return; + } - filterContainer.classList.add("hidden"); - filterButton.classList.remove("bg-slate-200"); - // Change icon back to filter when closed - const filterIcon = this.querySelector('i'); - if (filterIcon) { - filterIcon.className = "ri-filter-2-line"; - } - this.isOpen = false; - } + filterContainer.classList.add("hidden"); + filterButton.classList.remove("bg-slate-200"); + // Change icon back to filter when closed + const filterIcon = this.querySelector("i"); + if (filterIcon) { + filterIcon.className = "ri-filter-2-line"; + } + this.isOpen = false; + } - handleSelectionEvent(event) { - if (this.isOpen) { - this.hideFilter(); - } - } + handleSelectionEvent(event) { + if (this.isOpen) { + this.hideFilter(); + } + } - handleOutsideClick(event) { - const filterContainer = document.getElementById("filter-container"); - const filterButton = this.querySelector('button'); + handleOutsideClick(event) { + const filterContainer = document.getElementById("filter-container"); + const filterButton = this.querySelector("button"); - if ( - this.isOpen && - filterContainer && - filterButton && - !filterContainer.contains(event.target) && - !this.contains(event.target) - ) { - this.hideFilter(); - } - } + if ( + this.isOpen && + filterContainer && + filterButton && + !filterContainer.contains(event.target) && + !this.contains(event.target) + ) { + this.hideFilter(); + } + } } // Register the custom element -customElements.define('schnellauswahl-button', SchnellauswahlButton); +customElements.define("schnellauswahl-button", SchnellauswahlButton); /** * NavigationMenu - Web component for the main navigation menu * Web component for the main navigation menu with proper event handling */ class NavigationMenu extends HTMLElement { - constructor() { - super(); - this.isOpen = false; - } + constructor() { + super(); + this.isOpen = false; + } - connectedCallback() { - this.createMenu(); - this.setupEventListeners(); - } + connectedCallback() { + this.createMenu(); + this.setupEventListeners(); + } - disconnectedCallback() { - document.removeEventListener('click', this.handleOutsideClick); - document.removeEventListener('quickfilter:selection', this.handleSelectionEvent); - } + disconnectedCallback() { + document.removeEventListener("click", this.handleOutsideClick); + document.removeEventListener("quickfilter:selection", this.handleSelectionEvent); + } - createMenu() { - this.innerHTML = ` + createMenu() { + this.innerHTML = `
@@ -587,127 +578,127 @@ class NavigationMenu extends HTMLElement {
`; - } + } - setupEventListeners() { - const button = this.querySelector('#menu-toggle'); - const dropdown = this.querySelector('#menu-dropdown'); + setupEventListeners() { + const button = this.querySelector("#menu-toggle"); + const dropdown = this.querySelector("#menu-dropdown"); - if (button) { - button.addEventListener('click', (e) => { - e.stopPropagation(); - this.toggleMenu(); - }); - } + if (button) { + button.addEventListener("click", (e) => { + e.stopPropagation(); + this.toggleMenu(); + }); + } - // Listen for link clicks within the menu - if (dropdown) { - dropdown.addEventListener('click', (e) => { - const link = e.target.closest('a[href]'); - if (link) { - // Dispatch selection event - const selectionEvent = new CustomEvent('quickfilter:selection', { - detail: { - type: 'navigation', - source: 'menu', - url: link.getAttribute('href'), - text: link.textContent.trim() - }, - bubbles: true - }); + // Listen for link clicks within the menu + if (dropdown) { + dropdown.addEventListener("click", (e) => { + const link = e.target.closest("a[href]"); + if (link) { + // Dispatch selection event + const selectionEvent = new CustomEvent("quickfilter:selection", { + detail: { + type: "navigation", + source: "menu", + url: link.getAttribute("href"), + text: link.textContent.trim(), + }, + bubbles: true, + }); - document.dispatchEvent(selectionEvent); - } - }); - } + document.dispatchEvent(selectionEvent); + } + }); + } - // Bind event handlers for cleanup - this.handleOutsideClick = this.handleOutsideClick.bind(this); - this.handleSelectionEvent = this.handleSelectionEvent.bind(this); + // Bind event handlers for cleanup + this.handleOutsideClick = this.handleOutsideClick.bind(this); + this.handleSelectionEvent = this.handleSelectionEvent.bind(this); - // Listen for outside clicks - document.addEventListener('click', this.handleOutsideClick); + // Listen for outside clicks + document.addEventListener("click", this.handleOutsideClick); - // Listen for selection events to close menu - document.addEventListener('quickfilter:selection', this.handleSelectionEvent); - } + // Listen for selection events to close menu + document.addEventListener("quickfilter:selection", this.handleSelectionEvent); + } - toggleMenu() { - const button = this.querySelector('#menu-toggle'); - const dropdown = this.querySelector('#menu-dropdown'); + toggleMenu() { + const button = this.querySelector("#menu-toggle"); + const dropdown = this.querySelector("#menu-dropdown"); - if (!button || !dropdown) return; + if (!button || !dropdown) return; - if (this.isOpen) { - this.hideMenu(); - } else { - this.showMenu(); - } - } + if (this.isOpen) { + this.hideMenu(); + } else { + this.showMenu(); + } + } - showMenu() { - const button = this.querySelector('#menu-toggle'); - const dropdown = this.querySelector('#menu-dropdown'); + showMenu() { + const button = this.querySelector("#menu-toggle"); + const dropdown = this.querySelector("#menu-dropdown"); - if (!button || !dropdown) return; + if (!button || !dropdown) return; - dropdown.classList.remove('hidden'); - button.classList.add('bg-slate-200'); - this.isOpen = true; - } + dropdown.classList.remove("hidden"); + button.classList.add("bg-slate-200"); + this.isOpen = true; + } - hideMenu() { - const button = this.querySelector('#menu-toggle'); - const dropdown = this.querySelector('#menu-dropdown'); + hideMenu() { + const button = this.querySelector("#menu-toggle"); + const dropdown = this.querySelector("#menu-dropdown"); - if (!button || !dropdown) return; + if (!button || !dropdown) return; - dropdown.classList.add('hidden'); - button.classList.remove('bg-slate-200'); - this.isOpen = false; - } + dropdown.classList.add("hidden"); + button.classList.remove("bg-slate-200"); + this.isOpen = false; + } - handleSelectionEvent(event) { - // Close menu when any selection is made (from quickfilter or menu) - if (this.isOpen) { - this.hideMenu(); - } - } + handleSelectionEvent(event) { + // Close menu when any selection is made (from quickfilter or menu) + if (this.isOpen) { + this.hideMenu(); + } + } - handleOutsideClick(event) { - if (this.isOpen && !this.contains(event.target)) { - this.hideMenu(); - } - } + handleOutsideClick(event) { + if (this.isOpen && !this.contains(event.target)) { + this.hideMenu(); + } + } } // Register the custom element -customElements.define('navigation-menu', NavigationMenu); +customElements.define("navigation-menu", NavigationMenu); /** * Global event handler for quickfilter selections * Dispatches custom events when users select persons or places from quickfilter */ -document.addEventListener('DOMContentLoaded', function() { - // Add event delegation for person and place links in quickfilter - document.addEventListener('click', function(event) { - // Check if the clicked element is a person or place link within the quickfilter - const quickfilterTarget = event.target.closest('a[href^="/akteure/"], a[href^="/ort/"]'); - const filterContainer = document.getElementById('filter-container'); +document.addEventListener("DOMContentLoaded", function () { + // Add event delegation for person and place links in quickfilter + document.addEventListener("click", function (event) { + // Check if the clicked element is a person or place link within the quickfilter + const quickfilterTarget = event.target.closest('a[href^="/akteure/"], a[href^="/ort/"]'); + const filterContainer = document.getElementById("filter-container"); - if (quickfilterTarget && filterContainer && filterContainer.contains(quickfilterTarget)) { - // Dispatch custom event to notify components - const selectionEvent = new CustomEvent('quickfilter:selection', { - detail: { - type: quickfilterTarget.getAttribute('href').startsWith('/akteure/') ? 'person' : 'place', - source: 'quickfilter', - id: quickfilterTarget.getAttribute('href').split('/').pop(), - url: quickfilterTarget.getAttribute('href') - }, - bubbles: true - }); + if (quickfilterTarget && filterContainer && filterContainer.contains(quickfilterTarget)) { + // Dispatch custom event to notify components + const selectionEvent = new CustomEvent("quickfilter:selection", { + detail: { + type: quickfilterTarget.getAttribute("href").startsWith("/akteure/") ? "person" : "place", + source: "quickfilter", + id: quickfilterTarget.getAttribute("href").split("/").pop(), + url: quickfilterTarget.getAttribute("href"), + }, + bubbles: true, + }); - document.dispatchEvent(selectionEvent); - } - }); + document.dispatchEvent(selectionEvent); + } + }); });