/* ============================================================
   Gröne Glossar – Styles v1.6
   ============================================================ */

/* ── Seiten-Hintergrund (Kadence palette7 = Warm-Grau) ───── */
body.post-type-archive-glossar_term,
body.single-glossar_term {
    background-color: var(--global-palette7, #F4F2EE) !important;
}

/* ── Weißer Box-Container ────────────────────────────────── */
.groene-wrap {
    max-width: 1200px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    padding: 2.25rem 2.5rem 3rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Seitenkopf ──────────────────────────────────────────── */
.groene-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    color: #5C5C5C;
    margin-top: 0.2rem;
    margin-bottom: 0;
}

.groene-breadcrumb a {
    color: #5C5C5C !important;
    text-decoration: none;
}

.groene-breadcrumb a:hover {
    color: #2E6B4A !important;
    text-decoration: underline;
}

/* beide Separator-Klassen abdecken */
.groene-breadcrumb-sep,
.groene-sep {
    color: #bbb;
}

.groene-page-title {
    font-family: Montserrat, sans-serif !important;
    font-size: clamp(1.6rem, 4vw, 2rem) !important;
    font-weight: 500 !important;
    color: #1C1C1C !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

/* Einleitungstext: größerer Abstand nach Breadcrumb, 17px wie Kadence-Base */
.groene-page-desc {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.0625rem;
    color: #1C1C1C;
    margin: 1.75rem 0 0 !important;
    line-height: 1.65;
}

.groene-hr {
    border: none !important;
    border-top: 1px solid #e8e5df !important;
    margin: 1.75rem 0 2rem !important;
    background: none !important;
}

/* ── Alphabet-Navigation ─────────────────────────────────── */
.groene-alphav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.groene-al {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s;
}

.groene-al--on {
    background: #1A4731;
    color: #fff !important;
}

.groene-al--on:hover {
    background: #2E6B4A !important;
    color: #fff !important;
}

.groene-al--off {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* ── Buchstaben-Sektionen ────────────────────────────────── */
.groene-sections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.groene-section {
    border: 1px solid #e8e5df;
    border-radius: 8px;
    overflow: hidden;
}

/* ── Toggle (div statt button → kein Kadence-Override) ────── */
.groene-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    background: #faf9f7;
    border-bottom: 1px solid #e8e5df;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}

.groene-toggle:hover {
    background: #f0ede8;
}

.groene-toggle[aria-expanded="false"] {
    border-bottom-color: transparent;
}

.groene-toggle-letter {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: #1A4731;
    min-width: 1.6rem;
    display: block;
}

.groene-toggle-count {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.82rem;
    color: #999;
    flex: 1;
}

.groene-toggle-icon {
    font-size: 0.9rem;
    color: #C8A96E;
    transition: transform 0.2s;
}

.groene-toggle[aria-expanded="false"] .groene-toggle-icon {
    transform: rotate(-90deg);
}

/* ── Begriff-Liste ───────────────────────────────────────── */
.groene-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.groene-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    padding: 0.9rem 1.25rem !important;
    border-bottom: 1px solid #f0ede8 !important;
    background: #fff !important;
    list-style: none !important;
}

.groene-item:last-child {
    border-bottom: none !important;
}

.groene-item::marker,
.groene-list li::marker {
    content: '' !important;
    display: none !important;
}

.groene-item-body {
    flex: none;
    min-width: 0;
}

.groene-item-title {
    font-family: Montserrat, sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.2rem !important;
    line-height: 1.3 !important;
}

.groene-item-title a {
    color: #1A4731 !important;
    text-decoration: none !important;
}

.groene-item-title a:hover {
    color: #2E6B4A !important;
    text-decoration: underline !important;
}

.groene-item-excerpt {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.88rem;
    color: #666;
    margin: 0 !important;
    line-height: 1.5;
}

.groene-item-btn {
    align-self: flex-start;
    flex-shrink: 0;
    font-family: Montserrat, sans-serif;
    font-size: 0.77rem;
    font-weight: 600;
    color: #C8A96E !important;
    text-decoration: none !important;
    border: 1px solid #C8A96E;
    border-radius: 6px;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
    background: transparent;
    margin-top: 0.2rem;
}

.groene-item-btn:hover {
    background: #C8A96E !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Einzelseite ─────────────────────────────────────────── */
.groene-single-label {
    font-family: Montserrat, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C8A96E;
    margin: 0 0 0.4rem;
}

.groene-single-short {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.0625rem;
    color: #555;
    border-left: 3px solid #C8A96E;
    padding-left: 0.9rem;
    margin: 1.75rem 0 0 !important;
    line-height: 1.65;
}

.groene-single-content {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.0625rem;
    color: #1C1C1C;
    line-height: 1.75;
    margin-top: 1.5rem;
}

/* Erster Absatz schließt fließend an die Kurzzusammenfassung an */
.groene-single-content > p:first-child,
.groene-single-content > :first-child {
    margin-top: 0;
}

.groene-single-content h2 {
    font-family: Montserrat, sans-serif;
    font-size: 1.15rem;
    color: #1A4731;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

/* Abstand zwischen Überschrift und nachfolgendem Element vereinheitlichen */
.groene-single-content h2 + p,
.groene-single-content h2 + ul,
.groene-single-content h2 + ol {
    margin-top: 0;
}

.groene-single-content strong { color: #1A4731; }

/* ── Zurück-Link (Einzelseite) ───────────────────────────── */
.groene-back {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e5df;
}

.groene-back a {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    color: #5C5C5C !important;
    text-decoration: none;
}

.groene-back a:hover {
    color: #2E6B4A !important;
    text-decoration: underline;
}

/* ── Vor/Zurück-Navigation ───────────────────────────────── */
.groene-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.groene-pager-prev { justify-self: start; }
.groene-pager-next { justify-self: end; text-align: right; }
.groene-pager-center { justify-self: center; }

.groene-pager-az {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    background: #1A4731;
    color: #fff !important;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    border-radius: 50%;
    text-decoration: none !important;
    transition: background 0.12s;
}

.groene-pager-az:hover { background: #2E6B4A !important; }

.groene-pager-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none !important;
}

.groene-pager-dir {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.78rem;
    color: #999;
}

.groene-pager-name {
    font-family: Montserrat, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A4731 !important;
}

.groene-pager-link:hover .groene-pager-name {
    color: #2E6B4A !important;
    text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
    .groene-wrap { padding: 1.5rem 1.25rem 2rem; margin: 1rem; border-radius: 8px; }
    .groene-pager { grid-template-columns: 1fr; text-align: center; }
    .groene-pager-prev, .groene-pager-next { justify-self: center; text-align: center; }
    .groene-pager-center { order: -1; }
}
