/* Extracted from glossar.php. */

/* === Glossar-Hub, Prefix gl-hub- === */
.gl-hub-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}
.gl-hub-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.85rem;
    background: #dbeafe;
    border-radius: 50px;
}
.gl-hub-hero h1 {
    font-size: clamp(1.85rem, 3.8vw, 2.6rem);
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 1rem;
    line-height: 1.2;
}
.gl-hub-hero p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* Search */
.gl-hub-search-wrap {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0 1rem;
}
.gl-hub-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}
.gl-hub-search input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    font-size: 1rem;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}
.gl-hub-search input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
}
.gl-hub-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Filter-Bar */
.gl-hub-filters {
    padding: 1.25rem 0 0.5rem;
    background: #fff;
}
.gl-hub-filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.gl-hub-filter-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s;
}
.gl-hub-filter-btn:hover,
.gl-hub-filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.gl-hub-filter-btn .gl-hub-filter-count {
    font-weight: 500;
    opacity: 0.7;
    margin-left: 0.35rem;
    font-size: 0.78rem;
}

/* A-Z-Index (jetzt direkt unter der Suche) */
.gl-hub-az-bar {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.25rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    max-width: 720px;
}
.gl-hub-az-letter {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.15s, color 0.15s;
}
.gl-hub-az-letter:hover,
.gl-hub-az-letter.has-entries {
    color: #2563eb;
}
.gl-hub-az-letter.has-entries:hover {
    background: #dbeafe;
}
.gl-hub-az-letter.empty { color: #d1d5db; pointer-events: none; }

/* List */
.gl-hub-list-section { background: #f8fafc; padding: 2.5rem 0 4rem; }
.gl-hub-group {
    margin-bottom: 2.5rem;
}
.gl-hub-group-letter {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    scroll-margin-top: 200px;
}
.gl-hub-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.gl-hub-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--cat-color, #2563eb);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.gl-hub-item:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}
.gl-hub-item-term {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}
.gl-hub-item-term a {
    color: inherit;
    text-decoration: none;
}
.gl-hub-item-term a:hover { color: #2563eb; }
.gl-hub-item-cat {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}
.gl-hub-item-short {
    color: #4b5563;
    line-height: 1.55;
    font-size: 0.88rem;
    margin: 0 0 0.6rem;
    flex-grow: 1;
}
.gl-hub-item-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
    margin-top: auto;
}
.gl-hub-item-link:hover { text-decoration: underline; }

.gl-hub-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}
.gl-hub-no-results strong { display: block; margin-bottom: 0.5rem; color: #1f2937; }

/* CTA */
.gl-hub-cta {
    padding: 3rem 0;
    background: #f0f9ff;
    border-top: 1px solid #dbeafe;
    text-align: center;
}
.gl-hub-cta h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: #1e3a5f;
    margin: 0 0 0.75rem;
    font-weight: 800;
}
.gl-hub-cta p {
    color: #4b5563;
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}
.gl-hub-cta a {
    color: #2563eb;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .gl-hub-search-wrap { position: relative; top: auto; }
    .gl-hub-az-letter { width: 28px; height: 28px; font-size: 0.8rem; }
    .gl-hub-items { grid-template-columns: 1fr; }
}
