/* Glossar Styles */

.glossar-main {
    margin: 0;
    padding: 0;
}

/* Glossar Header - volle Breite mit grünem Gradient */
.glossar-main .expertise-header {
    background: linear-gradient(135deg, #646a9b 0%, #6d66cc 100%);
    color: white;
    padding: 100px 0 30px;
    width: 100%;
    margin-bottom: 30px;
}

.glossar-main .expertise-header h1 {
    font-size: 3rem;
    width: 1200px;
    max-width: 100%;
    font-family: Calibri, sans-serif;
    color: white;
    text-align: left;
    padding: 0px 20px;
}

.glossar-main .expertise-header p {
    font-size: 1.3rem;
    width: 1200px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-align: left;
    padding: 0px 20px;
}

.glossar-main .expertise-header .container {
    width:1200px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 20px;
    position: relative;
    min-height: 300px;
}

.container .expertise-header-image {
    height: 250px;
    width: auto;
    position: absolute;
    top: 200px;
    right: 20px;
    margin: 0px;
}

.search-box {
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: 20px 0px 0px 0px;
    border-radius: 10px;
    box-shadow: 10px 2px 8px rgba(66, 54, 138, 0.1);
}

.search-box input {
    width: 600px;
    padding: 8px 50px 8px 20px;
    margin: 0px;
    font-size: 1.1rem;
    border: 3px solid #aaccff;
    border-radius: 10px;
    transition: border-color 0.3s;
    background:#e0f0ff;
}

.search-box input:focus {
    border-color: #007bff;
    border-radius: 10px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.5rem;
}

.search-filters {
    width: 1000px;
    max-width: 100%;
    padding: 0px;
    margin: 25px 0px 0px 0px;
    background: transparent;
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    padding: 8px 10px;
    border: 2px solid #e9ecef;
    background: #aaccff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.7rem;
    font-weight: 500;
    color: #495057;
    min-width: 120px;
    min-height: 30px;
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Hauptcontainer für Inhalte unterhalb des Headers */
.glossar-main > .search-section,
.glossar-main > .alphabet-nav,
.glossar-main > .search-results-links,
.glossar-main > .begriff-content-display,
.glossar-main > .fachbereiche-section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.glossar-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #e9ecef;
}

.glossar-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.glossar-header p {
    color: #6c757d;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.letter-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #495057;
    transition: all 0.3s;
}

.letter-btn:hover,
.letter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

.letter-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Begriffsliste */
.begriffe-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.begriff-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 4px solid #007bff;
}

.begriff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.begriff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.begriff-card h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
    flex: 1;
}

.btn-open-begriff {
    background: linear-gradient(135deg, #007acc, #005a9e);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 122, 204, 0.2);
}

.btn-open-begriff:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 122, 204, 0.3);
}

.begriff-card .short-desc {
    color: #6c757d;
    line-height: 1.0;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.begriff-verwendung {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #495057;
    border-left: 3px solid #007acc;
}

.begriff-verwendung strong {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-size: 0.85rem;
}

.verwendung-link {
    display: inline-block;
    color: #007acc;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.85rem;
    margin-right: 4px;
}

.verwendung-link:hover {
    background-color: #007acc;
    color: white;
}

.begriff-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag.kategorie {
    background: #007bff;
    color: white;
}

/* Begriff Detail Modal */
.begriff-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.begriff-detail.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #f8d7da;
    color: #dc3545;
}

.detail-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.definition-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.definition-box strong {
    color: #007bff;
}

.expertise-links {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.expertise-links h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.expertise-link {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expertise-link:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateX(5px);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .glossar-header h1 {
        font-size: 2rem;
    }
    
    .begriffe-container {
        grid-template-columns: 1fr;
    }
    
    .alphabet-nav {
        gap: 5px;
    }
    
    .letter-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
}

/* Glossar-Links von Fachbereich-Seiten */
.glossar-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.glossar-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.glossar-inline-link {
    color: #007acc;
    text-decoration: none;
    border-bottom: 1px dashed #007acc;
    transition: border-bottom 0.2s, color 0.2s;
}

.glossar-inline-link:hover {
    color: #005a9e;
    border-bottom: 1px solid #005a9e;
}

/* Suchergebnisse als Links */
.search-results-links {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-results-links h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

#results-links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007acc;
    transition: all 0.2s;
}

.result-link-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.result-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    flex: 1;
    font-size: 1.05rem;
}

.result-link:hover .result-title {
    color: #007acc;
}

.result-icon {
    font-size: 1.2rem;
}

.result-title {
    font-weight: 600;
    transition: color 0.2s;
}

.result-verwendung {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

.result-category {
    background: #007acc;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Begriff-Inhalt Display */
.begriff-content-display {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e9ecef;
}

.content-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 2rem;
}

.close-content-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.close-content-btn:hover {
    background: #c82333;
}

#begriff-content-inner {
    line-height: 1.0;
    background: #eeeefa;
    padding: 20px;
}

/* Begriff Content Styling */
#begriff-content-inner h2 {
    color: #2c3e50;
    border-bottom: 3px solid #11998e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#begriff-content-inner h3 {
    color: #11998e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

#begriff-content-inner .definition-box {
    background: linear-gradient(135deg, #e3e5fa 0%, #ddddea 60%);
    border-left: 4px solid #11998e;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 0.75rem;
}

#begriff-content-inner ul {
    margin: 15px 0;
    padding-left: 30px;
}

#begriff-content-inner ul li {
    margin: 8px 0;
    line-height: 1.3;
}

/* Code-Beispiele im Glossar */
#begriff-content-inner pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#begriff-content-inner code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

#begriff-content-inner .code-example {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

#begriff-content-inner .code-example code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 2px 6px;
    border-radius: 4px;
}

#begriff-content-inner .expertise-links {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border: 2px solid #11998e;
}

#begriff-content-inner p {
    margin-bottom: 15px;
    line-height: 1.3;
    color:#2d2d2d;
    font-size: 0.95rem;
    padding-right: 10px;
}

#begriff-content-inner ol li {
    margin: 8px 0px 0px 30px;
    line-height: 1.3;

}

#begriff-content-inner .expertise-links h4 {
    color: #11998e;
    margin-bottom: 15px;
}

#begriff-content-inner .link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

#begriff-content-inner .expertise-link {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    border: 1px solid #dee2e6;
}

#begriff-content-inner .expertise-link:hover {
    background: #11998e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* Fachbereiche Section */
.fachbereiche-section {
    margin-top: 40px;
}

.fachbereiche-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-align: center;
}

.fachbereiche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fachbereich-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.fachbereich-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #007acc;
}

.fachbereich-card .card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.fachbereich-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-align: center;
}

.fachbereich-card p {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
}

