.sticky-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: white;
  color: grey;
  text-align: center;
  padding: 0.5rem 0;
  opacity: 70%;
  font-size: small;
}

/* Important: Add padding to the body so the footer 
   doesn't cover up the last bit of your content! */



* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, sans-serif; }

body { background-color: #f0f2f5; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; }

.container { text-align: center; width: 100%; max-width: 600px; margin-bottom: 30px; padding-bottom: 60px}

/* Suchfeld */
.search-container { 
    display: flex; 
    gap: 10px; 
    margin-top: 20px;
}
.search-container input { 
    flex: 1; 
    padding: 12px 15px; 
    border: 2px solid #ddd; 
    border-radius: 8px; 
    font-size: 16px;
}
.search-container button { 
    background: #007bff; 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: bold;
}
.search-container button:hover { background: #0056b3; }

/* Dashboard Layout */
.dashboard { 
    width: 100%; 
    max-width: 1200px; 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}

/* Karten-Design */
.card { 
    background: white; 
    padding: 24px; 
    border-radius: 12px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

/* Header & Top Row */
.header-card { text-align: center; border-bottom: 4px solid #007bff; }
.top-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 20px; 
}

/* Management Grid */
.management-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    width: 100%;
}

/* Jahrgang-Header */
.jahrgang-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.jahrgang-header h5 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jahrgang-header h5 i {
    color: #007bff;
}

.jahrgang-count {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Einfache Urkunden-Karten */
.urkunde-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;


}
.urkunde-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.urkunde-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.urkunde-header i {
    font-size: 1.5rem;
}

.urkunde-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.urkunde-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.urkunde-info {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 15px;
}
.urkunde-info div {
    margin-bottom: 4px;
}
.urkunde-info strong {
    color: #333;
}

.urkunde-actions {
    display: flex;
    gap: 10px;
}
.btn-view, .btn-download {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
}
.btn-view {
    background: #e3f2fd;
    color: #007bff;
}
.btn-view:hover {
    background: #bbdefb;
}
.btn-download {
    background: #e8f5e9;
    color: #2e7d32;
}
.btn-download:hover {
    background: #c8e6c9;
}

/* Person Cards */
.person-card { 
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    border: 1px solid #e1e8ed; 
    display: flex;
    flex-direction: column;
}
.person-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.person-type { 
    font-size: 0.7rem; 
    font-weight: bold; 
    color: #00bcd4;
    text-transform: uppercase; 
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.person-name { font-weight: 700; color: #333; margin-bottom: 5px; }
.person-info { font-size: 0.8rem; color: #777; line-height: 1.4; }

.tag { 
    background: #e0f7fa; 
    color: #00838f; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    margin: 5px; 
    display: inline-block; 
}

/* Filter-Sidebar Stile */
.search-results-container {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    font-size: 1.2rem;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    color: #34495e;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.filter-option:hover {
    background-color: #f8f9fa;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-clear {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #e9ecef;
    color: #333;
}

.search-results-main {
    flex: 1;
}

.search-header {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.search-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.results-count {
    color: #007bff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.active-filter-tag {
    background: #e3f2fd;
    color: #007bff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.active-filter-tag::before {
    content: "×";
    cursor: pointer;
    font-weight: bold;
}

/* Urkunden Grid */
.urkunden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Modal-Stile */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

/* Responsive Anpassungen */
@media (max-width: 1200px) {
    .search-results-container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
    }
    
    .management-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .urkunden-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 1000px) { 
    .management-grid { grid-template-columns: repeat(2, 1fr); } 
    .top-row { grid-template-columns: 1fr; }
    .urkunden-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) { 
    .management-grid { grid-template-columns: 1fr; }
    .urkunden-grid { grid-template-columns: 1fr; }
    .urkunde-actions { flex-direction: column; }
    .btn-view, .btn-download { width: 100%; }
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 650px) { 
    .management-grid { grid-template-columns: 1fr; } 
    .search-container { flex-direction: column; }
}

/* Scrollbar für Filter-Optionen */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
a {
  color: inherit;           
  text-decoration: none;    
}