/* ============================================
   ACTIVITIES & RESULTS PAGES - EDITORIAL DESIGN
   BaKuLe Project - Bamberger Kulturen der Lehre
   ============================================ */

/* ----------------------------------------
   CSS CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
    --page-bg: #FAFAF8;
    --card-bg: #FFFFFF;
    --border-subtle: rgba(43, 42, 41, 0.08);
    --border-medium: rgba(43, 42, 41, 0.12);
    --text-primary: #2B2A29;
    --text-secondary: #5A5856;
    --text-muted: #8A8784;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-modal: 0 25px 80px rgba(0, 0, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------------------
   SUBPAGE NAVIGATION
   ---------------------------------------- */
.subpage-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity var(--transition-fast);
}

.nav-home:hover {
    opacity: 0.7;
}

.nav-home .bakule-logo {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: var(--card-bg);
    background: var(--text-primary);
}

/* ----------------------------------------
   PAGE WRAPPER & LAYOUT
   ---------------------------------------- */
.page-wrapper {
    min-height: 100vh;
    background: var(--page-bg);
}

.activities-page,
.results-page {
    background: var(--page-bg);
}

/* ----------------------------------------
   PAGE HEADER
   ---------------------------------------- */
.page-header {
    position: relative;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, #F0EDE8 0%, var(--page-bg) 100%);
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.title-accent {
    display: block;
    font-size: 0.4em;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Header Decoration */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--bakule-color-03) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    opacity: 0.15;
}

.deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--bakule-color-07) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    opacity: 0.12;
}

.deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--bakule-color-09) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    opacity: 0.1;
}

/* Results page variation */
.results-header .deco-1 {
    background: radial-gradient(circle, var(--bakule-color-01) 0%, transparent 70%);
}

.results-header .deco-2 {
    background: radial-gradient(circle, var(--bakule-color-05) 0%, transparent 70%);
}

/* ----------------------------------------
   PAGE CONTENT
   ---------------------------------------- */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* ----------------------------------------
   FILTER PANEL
   ---------------------------------------- */
.filter-panel {
    position: sticky;
    top: 72px;
    z-index: 50;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
}

.filter-panel-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    background: var(--page-bg);
    border-radius: 100px;
    padding: 4px;
    gap: 2px;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.toggle-btn.active svg {
    opacity: 1;
}

/* Baustein Chips */
.baustein-chips {
    display: flex;
    gap: 6px;
}

.baustein-chip {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    background: var(--page-bg);
    overflow: hidden;
}

.baustein-chip::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bakule-color-01);
    opacity: 0.25;
    transition: all var(--transition-fast);
}

/* Dynamic baustein colors */
.baustein-chip[data-baustein="01"]::before { background: var(--bakule-color-01); }
.baustein-chip[data-baustein="02"]::before { background: var(--bakule-color-02); }
.baustein-chip[data-baustein="03"]::before { background: var(--bakule-color-03); }
.baustein-chip[data-baustein="04"]::before { background: var(--bakule-color-04); }
.baustein-chip[data-baustein="05"]::before { background: var(--bakule-color-05); }
.baustein-chip[data-baustein="06"]::before { background: var(--bakule-color-06); }
.baustein-chip[data-baustein="07"]::before { background: var(--bakule-color-07); }
.baustein-chip[data-baustein="08"]::before { background: var(--bakule-color-08); }
.baustein-chip[data-baustein="09"]::before { background: var(--bakule-color-09); }
.baustein-chip[data-baustein="10"]::before { background: var(--bakule-color-10); }

.chip-number {
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.baustein-chip:hover {
    transform: scale(1.1);
}

.baustein-chip:hover::before {
    opacity: 0.5;
}

.baustein-chip.active::before {
    opacity: 1;
    inset: 0;
}

.baustein-chip.active .chip-number {
    color: white;
}

/* Filter Reset Button */
.filter-reset {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.filter-reset:hover:not(:disabled) {
    background: var(--page-bg);
    color: var(--text-primary);
}

.filter-reset:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Category Tabs (Results page) */
.category-tabs {
    display: flex;
    gap: 4px;
    background: var(--page-bg);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-tab svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.category-tab:hover {
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-tab.active svg {
    opacity: 1;
}

/* Results Counter */
.filter-results-count {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.count-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.count-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ----------------------------------------
   ACTIVITIES GRID
   ---------------------------------------- */
.activities-grid {
    display: grid;
    gap: 1.25rem;
}

.grid-item {
    animation: fadeSlideUp 0.5s ease-out backwards;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   ACTIVITY CARD
   ---------------------------------------- */
.activity-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-smooth);
}

.activity-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.activity-card:has(.activity-details:not([hidden])) {
    box-shadow: var(--shadow-card-hover);
}

/* Date Column */
.activity-date-col {
    width: 90px;
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--card-accent, var(--bakule-color-03)) 20%, white) 0%,
        color-mix(in srgb, var(--card-accent, var(--bakule-color-03)) 12%, white) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-right: 1px solid var(--border-subtle);
}

.activity-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.date-day {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--card-accent, var(--bakule-color-03));
    letter-spacing: -0.02em;
}

.date-month {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.date-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.activity-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.activity-type-icon svg {
    width: 18px;
    height: 18px;
    color: var(--card-accent, var(--bakule-color-03));
}

/* Content Column */
.activity-content-col {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Badges */
.activity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.baustein-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 0.5rem;
    border-radius: 11px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 22px;
    padding: 0 0.6rem;
    border-radius: 11px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400E;
}

.highlight-badge svg {
    color: #F59E0B;
}

/* Title & Summary */
.activity-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0;
}

.activity-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Info */
.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item svg {
    opacity: 0.5;
}

/* Expand Button */
.activity-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: none;
    border-radius: 100px;
    background: var(--page-bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.activity-expand-btn:hover {
    background: var(--card-accent, var(--bakule-color-03));
    color: white;
    border-color: transparent;
}

.activity-expand-btn .expand-icon {
    transition: transform var(--transition-smooth);
}

.activity-expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Expandable Details Section */
.activity-details {
    grid-column: 1 / -1;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--page-bg) 0%, var(--card-bg) 100%);
}

.activity-details-inner {
    padding: 1.5rem 2rem 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    columns: 2;
    column-gap: 2.5rem;
}

.activity-details-inner h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    text-align: left;
    color: var(--text-primary);
    break-after: avoid;
    break-inside: avoid;
}

.activity-details-inner h2:first-child {
    margin-top: 0;
}

.activity-details-inner h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
    break-after: avoid;
}

.activity-details-inner p {
    margin-bottom: 1rem;
}

.activity-details-inner ul,
.activity-details-inner ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.activity-details-inner li {
    margin-bottom: 0.4rem;
}

.activity-details-inner strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Decorative Corner */
.activity-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
        transparent 50%,
        color-mix(in srgb, var(--corner-color, var(--bakule-color-03)) 6%, transparent) 50%
    );
    pointer-events: none;
}

/* ----------------------------------------
   RESULTS LIST
   ---------------------------------------- */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    animation: fadeSlideUp 0.5s ease-out backwards;
    animation-delay: calc(var(--item-index, 0) * 0.04s);
}

/* ----------------------------------------
   RESULT CARD
   ---------------------------------------- */
.result-card {
    display: grid;
    grid-template-columns: auto 1fr;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-smooth);
}

.result-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateX(4px);
}

/* Year Marker */
.result-year-marker {
    width: 70px;
    padding: 1.25rem 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--card-accent, var(--bakule-color-03)) 18%, white) 0%,
        color-mix(in srgb, var(--card-accent, var(--bakule-color-03)) 10%, white) 100%
    );
    border-right: 1px solid var(--border-subtle);
}

.result-year-marker span {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--card-accent, var(--text-muted));
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 0.05em;
}

/* Result Content */
.result-content {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Result Badges */
.result-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 0.6rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--page-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.type-badge.journal { background: #EDE9FE; color: #5B21B6; border-color: #DDD6FE; }
.type-badge.conference { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.type-badge.book { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.type-badge.chapter { background: #D1FAE5; color: #065F46; border-color: #A7F3D0; }
.type-badge.report { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.type-badge.invited { background: #FCE7F3; color: #9D174D; border-color: #FBCFE8; }
.type-badge.workshop { background: #FFEDD5; color: #9A3412; border-color: #FED7AA; }
.type-badge.poster { background: #E0E7FF; color: #3730A3; border-color: #C7D2FE; }

.baustein-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
}

.highlight-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F59E0B;
    margin-left: 0.25rem;
}

/* Result Title */
.result-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

/* Result Authors */
.result-authors {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Result Venue */
.result-venue {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.result-date {
    color: var(--text-muted);
}

/* Result Links */
.result-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--page-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    transition: all var(--transition-fast);
}

.result-link:hover {
    background: var(--text-primary);
    color: var(--card-bg);
    border-color: var(--text-primary);
}

.result-link svg {
    opacity: 0.6;
}

.result-link:hover svg {
    opacity: 1;
}

/* Activity Footer (Link + Expand Button) */
.activity-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* Baustein Link in Cards */
.baustein-link-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--page-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    transition: all var(--transition-fast);
}

.baustein-link-small:hover {
    background: var(--card-accent, var(--bakule-color-03));
    color: white;
    border-color: transparent;
}

.baustein-link-small svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.baustein-link-small:hover svg {
    opacity: 1;
}

/* ----------------------------------------
   EMPTY STATE
   ---------------------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.reset-filters-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 100px;
    background: var(--text-primary);
    color: var(--card-bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reset-filters-btn:hover {
    transform: scale(1.05);
}

/* ----------------------------------------
   RESPONSIVE DESIGN
   ---------------------------------------- */
@media (max-width: 900px) {
    .filter-panel-inner {
        gap: 1rem;
    }

    .filter-toggle-group {
        width: 100%;
    }

    .filter-baustein-group {
        width: 100%;
    }

    .filter-category-group {
        width: 100%;
    }

    .filter-results-count {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-subtle);
    }
}

@media (max-width: 1024px) {
    .subpage-nav {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Compact filter panel */
    .filter-panel-inner {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .filter-label {
        display: none;
    }

    .filter-group {
        gap: 0.5rem;
    }

    .filter-toggle-group,
    .filter-baustein-group,
    .filter-category-group {
        width: auto;
    }

    .toggle-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .toggle-btn svg {
        width: 12px;
        height: 12px;
    }

    .baustein-chips {
        gap: 4px;
    }

    .baustein-chip {
        width: 26px;
        height: 26px;
    }

    .chip-number {
        font-size: 0.6rem;
    }

    .filter-reset {
        width: 28px;
        height: 28px;
    }

    .filter-results-count {
        width: auto;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
    }

    .count-number {
        font-size: 1.1rem;
    }

    .count-label {
        font-size: 0.7rem;
    }

    .subpage-nav {
        padding: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .page-header {
        padding: 6rem 1rem 2.5rem;
    }

    .page-content {
        padding: 0 1rem 3rem;
    }

    .filter-panel {
        top: 60px;
        border-radius: var(--radius-md);
    }

    .filter-panel-inner {
        padding: 1rem;
    }

    .activity-card {
        grid-template-columns: 1fr;
    }

    .activity-date-col {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .activity-date-wrapper {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .activity-corner {
        display: none;
    }

    .activity-details-inner {
        padding: 1.25rem 1rem 1.5rem;
        columns: 1;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .result-year-marker {
        padding: 0.75rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .result-year-marker span {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .modal-container {
        max-width: 100%;
    }

    .modal-header,
    .modal-meta,
    .modal-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .toggle-switch {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .baustein-chips {
        flex-wrap: wrap;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

    .category-tab {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 2px);
    }
}

/* ----------------------------------------
   HIDDEN UTILITY
   ---------------------------------------- */
[hidden] {
    display: none !important;
}

/* ----------------------------------------
   PRINT STYLES
   ---------------------------------------- */
@media print {
    .subpage-nav,
    .filter-panel,
    .activity-expand-btn,
    .activity-corner,
    .result-accent-line {
        display: none !important;
    }

    .page-header {
        padding-top: 2rem;
    }

    .activity-card,
    .result-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
