/* Archiv-spezifische Styles */

/* Badge schwarz */
.results-card .card-header .badge,
.badge.bg-primary {
    background-color: #000 !important;
    color: white !important;
}

/* Jahr-Filter-Buttons */
.year-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.year-btn {
    min-width: 80px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    /* Konsistente Blautöne für alle Buttons */
    color: var(--primary-blue) !important;
    background-color: white !important;
    border-color: var(--primary-blue) !important;
    border-width: 1px;
}

.year-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 119, 190, 0.2);
    background-color: var(--primary-blue-light) !important;
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue) !important;
}

.year-btn.active,
.year-btn.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.3);
}

.year-btn.btn-outline-primary {
    color: var(--primary-blue) !important;
    background-color: white !important;
    border-color: var(--primary-blue) !important;
}

/* Suchformular */
.search-form {
    margin-bottom: 0;
}

/* Archiv-Tabelle */
#archivTable {
    font-size: 0.95rem;
}

#archivTable thead th {
    background-color: var(--primary-blue-light);
    color: #0b3d62;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

#archivTable tbody tr {
    transition: background-color 0.2s ease;
}

#archivTable tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

#archivTable tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

#archivTable td {
    vertical-align: top;
    padding: 1rem 0.75rem;
}

/* Info-Links in der Tabelle */
#archivTable .info-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.75rem;
    transition: all 0.15s ease;
}

#archivTable .info-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .year-filter-buttons {
        gap: 0.35rem;
    }
    
    .year-btn {
        min-width: 70px;
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    #archivTable {
        font-size: 0.85rem;
    }
    
    #archivTable td,
    #archivTable th {
        padding: 0.5rem 0.5rem;
    }
    
    #archivTable th:nth-child(6),
    #archivTable td:nth-child(6) {
        display: none; /* Zusatzlink-Spalte auf Mobile ausblenden */
    }
}

@media (max-width: 576px) {
    .year-filter-buttons {
        gap: 0.25rem;
    }
    
    .year-btn {
        min-width: 65px;
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    #archivTable th:nth-child(1),
    #archivTable td:nth-child(1) {
        width: 90px;
        font-size: 0.8rem;
    }
}

/* Print-Styles */
@media print {
    .year-filter-buttons,
    .search-form,
    .navbar,
    .btn,
    .site-footer {
        display: none !important;
    }
    
    #archivTable {
        font-size: 8pt !important;
    }
    
    #archivTable thead th,
    #archivTable tbody td {
        padding: 4px 6px !important;
        border: 1px solid #ddd !important;
    }
    
    #archivTable .btn {
        display: none !important;
    }
    
    #archivTable a[href]::after {
        content: " (" attr(href) ")";
        font-size: 7pt;
        color: #666;
    }
}

