/* Grundlegende Styles für das Glossar, die das Theme ergänzen */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9em;
    color: #666;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Kategorien */
.entry-categories {
    margin: 1rem 0;
}

.category-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.5rem 0.5rem 0;
    background: #f0f0f0;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9em;
}

.category-link:hover {
    background: #e0e0e0;
}

/* Related Terms */
.related-terms {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-terms-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.related-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-term {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
}

.related-term-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.related-term-title a {
    text-decoration: none;
}

.related-term-title a:hover {
    text-decoration: underline;
}

.related-term-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.5rem;
}

.related-term-meta {
    font-size: 0.8em;
    color: #888;
}

/* Print Button */
.print-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.print-button:hover {
    background: #e0e0e0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .related-terms-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .back-link,
    .print-button,
    .related-terms {
        display: none;
    }
}

/* Archiv Styles */
.glossar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.category-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.category-filter:hover {
    background: #e0e0e0;
}

.category-filter.active {
    background: #76B843;
    color: white;
}

.category-filter .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8em;
}

.category-filter.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* Alphabet Navigation */
.glossar-alphabet-nav {
    margin: 2rem 0;
}

.alphabet-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 0.5rem;
}

.letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
}

.letter:hover {
    background: #76B843;
    color: white;
}

.letter.has-posts {
    color: #333;
}

.letter.no-posts {
    color: #999;
    cursor: not-allowed;
}

.letter.active {
    background: #76B843;
    color: white;
}

.letter.all {
    width: auto;
    padding: 0 1rem;
    background: rgba(118, 184, 67, 0.1);
    color: #76B843;
}

.letter.all:hover {
    background: #76B843;
    color: white;
}

/* Glossar Einträge */
.glossar-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.glossar-entry {
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.glossar-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.glossar-entry .entry-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.glossar-entry .entry-title a {
    text-decoration: none;
    color: inherit;
}

.glossar-entry .entry-title a:hover {
    color: #76B843;
}

.glossar-entry .entry-content {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95em;
    line-height: 1.6;
}

.glossar-entry .entry-footer {
    margin-top: auto;
}

.glossar-entry .read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #76B843;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.glossar-entry .read-more:hover {
    background: #69A63C;
    color: white;
}

/* Responsive Anpassungen für das Archiv */
@media (max-width: 768px) {
    .glossar-categories {
        flex-direction: column;
    }
    
    .category-filter {
        width: 100%;
        justify-content: center;
    }
    
    .alphabet-container {
        padding: 0.5rem;
    }
    
    .letter {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8em;
    }
    
    .glossar-entries {
        grid-template-columns: 1fr;
    }
}

/* Print Styles für das Archiv */
@media print {
    .glossar-categories,
    .glossar-alphabet-nav,
    .read-more {
        display: none;
    }
    
    .glossar-entries {
        display: block;
    }
    
    .glossar-entry {
        break-inside: avoid;
        margin-bottom: 2rem;
        border: none;
        padding: 0;
    }
} 