/* Lexikon Archive Styles - Alphabetisches Lexikon mit A-Z Navigation */

.lexikon-archive-main {
    background: #ffffff;
}

.lexikon-archive-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Header */
.lexikon-archive-hero {
    background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
    padding: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.lexikon-archive-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.lexikon-archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.lexikon-archive-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.archive-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* A-Z Navigation (sticky) */
.lexikon-alphabet-nav {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    z-index: 1;
    transition: all 0.3s ease;
}

.lexikon-alphabet-nav.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.alphabet-nav-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
}

.alphabet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.alphabet-link.has-entries {
    background: #f5f5f5;
    color: #7cb342;
    border: 2px solid #7cb342;
}

.alphabet-link.has-entries:hover {
    background: #7cb342;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
}

.alphabet-link.no-entries {
    background: transparent;
    color: #d0d0d0;
    border: 2px solid #e8e8e8;
    cursor: not-allowed;
}

/* Lexikon Entries Section */
.lexikon-entries-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f0f8f0 100%);
}

/* Letter Groups */
.lexikon-letter-group {
    margin-bottom: 60px;
}

/* Reduced margin for empty letter groups */
.lexikon-letter-group.empty {
    margin-bottom: 20px;
}

/* Letter Divider */
.letter-divider {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #7cb342;
}

/* Smaller letter symbol for empty groups */
.lexikon-letter-group.empty .letter-symbol {
    font-size: 2.5rem;
    opacity: 0.5;
}

.letter-symbol {
    font-size: 4rem;
    font-weight: 900;
    color: #7cb342;
    line-height: 1;
    margin-right: 20px;
    text-shadow: 2px 2px 0 rgba(124, 179, 66, 0.1);
}

/* Terms List */
.lexikon-terms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.lexikon-term-item {
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.lexikon-term-item:hover {
    border-color: #7cb342;
    transform: translateX(5px);
    box-shadow: -4px 4px 12px rgba(124, 179, 66, 0.15);
}

.lexikon-term-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.lexikon-term-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7cb342;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.lexikon-term-item:hover .lexikon-term-bullet {
    transform: scale(1.5);
    box-shadow: 0 0 12px rgba(124, 179, 66, 0.6);
}

.lexikon-term-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.lexikon-term-item:hover .lexikon-term-title {
    color: #7cb342;
}

.lexikon-term-arrow {
    color: #7cb342;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.lexikon-term-item:hover .lexikon-term-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Wiederholte A-Z Navigation nach jedem Buchstaben */
.letter-group-alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.alphabet-mini-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.alphabet-mini-link.has-entries {
    background: #f5f5f5;
    color: #7cb342;
    border: 1px solid #e0e0e0;
}

.alphabet-mini-link.has-entries:hover {
    background: #7cb342;
    color: #ffffff;
    transform: translateY(-2px);
}

.alphabet-mini-link.no-entries {
    background: transparent;
    color: #d0d0d0;
    border: 1px solid #f0f0f0;
    cursor: not-allowed;
}

/* No Entries Message */
.no-entries {
    text-align: center;
}

.no-entries svg {
    color: #bbb;
    margin-bottom: 30px;
}

.no-entries h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.no-entries p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */

@media (max-width: 1024px) {
    .lexikon-terms-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .archive-title {
        font-size: 2.5rem;
    }
    
    .letter-symbol {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .lexikon-archive-hero {
        padding: 50px 0 30px 0;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-subtitle {
        font-size: 1rem;
    }
    
    .alphabet-nav-inner {
        gap: 6px;
        padding: 12px 0;
    }
    
    .alphabet-link {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }
    
    .letter-symbol {
        font-size: 3rem;
    }
    
    .lexikon-terms-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .archive-title {
        font-size: 1.75rem;
    }
    
    .archive-subtitle {
        font-size: 0.9375rem;
    }
    
    .alphabet-link {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .letter-symbol {
        font-size: 2.5rem;
    }
    
    .lexikon-term-title {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .archive-title {
        font-size: 1.5rem;
    }
    
    .alphabet-link {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }
}
