/* ===========================================
   GLOSSARY CUSTOM STYLES
=========================================== */

/* Alphabetleiste - ohne Kasten */
#glossaryList-nav.listNav {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 25px 0 !important;
    margin: 30px 0 !important;
    box-shadow: none !important;
}

.ln-letters {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
}

/* Einfache Buchstaben - OHNE Rauten */
.ln-letters a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: #1f3050 !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 8px 12px !important;
    border: none !important;
    clip-path: none !important;
    transform: none !important;
}

/* Hover Zustand */
.ln-letters a:hover {
    color: #dcda1c !important;
    transform: scale(1.1) !important;
}

/* Aktiver Zustand */
.ln-letters a.ln-selected {
    color: #1f3050 !important;
    font-weight: 900 !important;
    transform: scale(1.1) !important;
}

/* Container für Buchstaben-Header */
.glossary-container {
    width: 100% !important;
}

.letter-header {
    font-size: 4rem !important;
    font-weight: 900 !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #1f3050 !important;
    line-height: 1 !important;
    margin: 50px 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #1f3050 !important;
    width: 100% !important;
    display: block !important;
}

/* Entferne ::before aus Grid */
.glossaryList::before {
    display: none !important;
}

/* Buchstaben-Header über die ganze Breite */
.glossaryList::before {
    content: "A" !important;
    display: block !important;
    font-size: 4rem !important;
    font-weight: 900 !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #1f3050 !important;
    line-height: 1 !important;
    margin: 50px 0 20px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #1f3050 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Begriffe-Liste - Grid */
.glossaryList {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 15px !important;
    column-gap: 30px !important;
    padding: 0 !important;
    margin: 20px 0 !important;
    list-style: none !important;
}

/* Einzelne Begriffe - ohne Kästen */
.glossaryList li {
    background: none !important;
    margin: 5px 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Begriff-Links */
.glossaryList li a.glossaryLink {
    color: #1f3050 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1.6 !important;
}

.glossaryList li a.glossaryLink:hover {
    color: #dcda1c !important;
    text-decoration: none !important;
}

/* Anzahl-Tooltip verstecken */
.ln-letter-count {
    display: none !important;
}

/* "Nothing found" komplett verstecken */
.ln-no-match {
    display: none !important;
}

.glossaryList li[style*="Nothing found"] {
    display: none !important;
}

/* Versteckte Begriffe */
.glossaryList li[style*="display: none"] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ln-letters {
        gap: 15px !important;
    }
    
    .ln-letters a {
        font-size: 20px !important;
        padding: 6px 10px !important;
    }
    
    .glossaryList {
        grid-template-columns: 1fr !important;
    }
    
    .glossaryList::before {
        font-size: 3rem !important;
        margin: 30px 0 15px 0 !important;
    }
}

/* Montserrat Font laden */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* Alle Kästen entfernen */
.glossaryList,
.glossaryList li,
.glossaryList li a {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
