/* ============================================================
   Herbano Ratgeber — 3-Spalten-Article-Layout
   Themenwelt (links) / Content (Mitte) / TOC (rechts, sticky)
   ============================================================ */

   .herbano-article {
    max-width: var(--hb-container-wide);
    margin: 0 auto;
    padding: 0 var(--hb-sp-5) var(--hb-sp-8);
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    gap: var(--hb-sp-7);
    align-items: start;
}

/* Wenn Post keine Themenwelt hat: 2-Spalten-Layout (nur Content + TOC) */
.herbano-article-wrap--no-themenwelt .herbano-article {
    grid-template-columns: 1fr 280px;
}

.herbano-article__sidebar {
    font-family: var(--hb-f-body);
}

.herbano-article__main {
    min-width: 0;  /* damit Long-Words nicht das Grid sprengen */
}

/* TOC rechts sticky auf Desktop */
.herbano-article__sidebar--right {
    position: sticky;
    top: var(--hb-sp-5);
    max-height: calc(100vh - var(--hb-sp-7));
    overflow-y: auto;
}

/* ============================================================
   Themenwelt-Box (statisches Demo, später Etappe 9)
   ============================================================ */

.herbano-themenwelt-box {
    background: var(--hb-mist);
    border-radius: var(--hb-r-lg);
    padding: var(--hb-sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--hb-sp-2);
}

.herbano-themenwelt-box__eyebrow {
    font-family: var(--hb-f-body);
    font-size: var(--hb-fs-eyebrow);
    font-weight: 600;
    letter-spacing: var(--hb-tracking-eyebrow);
    text-transform: uppercase;
    color: var(--hb-accent);
}

.herbano-themenwelt-box__title {
    font-family: var(--hb-f-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
    color: var(--hb-ink);
    margin: 0;
}

.herbano-themenwelt-box__title a {
    color: var(--hb-accent);
    text-decoration: none;
    transition: color var(--hb-dur-micro) var(--hb-ease);
}

.herbano-themenwelt-box__title a:hover {
    color: var(--hb-accent-dark);
}

.herbano-themenwelt-box__intro {
    font-size: var(--hb-fs-small);
    line-height: var(--hb-lh-body);
    color: var(--hb-ink-3);
    margin: 0 0 var(--hb-sp-2);
}

.herbano-themenwelt-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--hb-mint);
    padding-top: var(--hb-sp-3);
}

.herbano-themenwelt-box__list li {
    margin: 0;
    padding: 0;
}

.herbano-themenwelt-box__list a,
.herbano-themenwelt-box__list .is-current > span {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: var(--hb-sp-2) 0;
    font-size: var(--hb-fs-small);
    line-height: 1.4;
    color: var(--hb-ink);
    text-decoration: none;
    transition: color var(--hb-dur-micro) var(--hb-ease);
    border-bottom: 1px solid transparent;
}

.herbano-themenwelt-box__label {
    flex: 1;
    min-width: 0;
}

.herbano-themenwelt-box__badge,
.herbano-themenwelt-box__number {
    flex-shrink: 0;
    margin-right: 0;
}

.herbano-themenwelt-box__list a:hover {
    color: var(--hb-accent);
}

.herbano-themenwelt-box__link {
    font-family: var(--hb-f-body);
    font-size: var(--hb-fs-small);
    font-weight: 600;
    color: var(--hb-accent);
    text-decoration: none;
    margin-top: var(--hb-sp-3);
    transition: color var(--hb-dur-micro) var(--hb-ease);
}

.herbano-themenwelt-box__link:hover {
    color: var(--hb-accent-dark);
}

/* ============================================================
   Mobile + Tablet — 1-Spalte, Sidebars verstecken
   (kommen in Etappe 8 via Bottom-Bar zurück)
   ============================================================ */
@media (max-width: 1024px) {
    .herbano-article-wrap .herbano-article {
        grid-template-columns: 1fr;
        gap: var(--hb-sp-5);
        padding: 0 var(--hb-sp-4) var(--hb-sp-6);
    }

    .herbano-article__sidebar--left,
    .herbano-article__sidebar--right {
        display: none;
    }
}

/* ============================================================
   Wissensreihen-Box — Current-Item + Hub-Badge
   ============================================================ */

   .herbano-themenwelt-box__list .is-current > span {
    color: var(--hb-accent);
    font-weight: 600;
    cursor: default;
}

.herbano-themenwelt-box__badge {
    display: inline-block;
    background: var(--hb-accent);
    color: #fff;
    font-family: var(--hb-f-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: 2px;
}

.herbano-themenwelt-box__number {
    display: inline-block;
    font-family: var(--hb-f-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--hb-accent);
    background: rgba(70, 124, 72, 0.08);
    letter-spacing: 0.05em;
    padding: 1px 5px;
    margin-right: 6px;
    vertical-align: 2px;
    min-width: 22px;
    text-align: center;
    border-radius: 3px;
}

/* ============================================================
   Ratgeber-Detail — Überschriften-Typografie
   ============================================================ */

.herbano-article__main h2:not([class*="herbano-"]),
.post-description.custom-description h2:not([class*="herbano-"]) {
    font-family: var(--hb-f-display) !important;
    font-size: var(--hb-fs-h2) !important;
    font-weight: 600 !important;
    color: #467c48 !important;
    line-height: var(--hb-lh-snug) !important;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
}

.herbano-article__main h3:not([class*="herbano-"]),
.post-description.custom-description h3:not([class*="herbano-"]) {
    font-family: var(--hb-f-display) !important;
    font-size: var(--hb-fs-h3) !important;
    font-weight: 500 !important;
    color: #339932 !important;
    line-height: var(--hb-lh-snug) !important;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
}

.herbano-article__main h4:not([class*="herbano-"]),
.post-description.custom-description h4:not([class*="herbano-"]) {
    font-family: var(--hb-f-display) !important;
    font-size: var(--hb-fs-h4) !important;
    font-weight: 400 !important;
    color: #006633 !important;
    line-height: var(--hb-lh-body) !important;
    margin-top: 20px !important;
    margin-bottom: 6px !important;
}

@media (max-width: 768px) {
    .herbano-article__main h2:not([class*="herbano-"]),
    .post-description.custom-description h2:not([class*="herbano-"]) {
        font-size: 26px !important;
    }
    .herbano-article__main h3:not([class*="herbano-"]),
    .post-description.custom-description h3:not([class*="herbano-"]) {
        font-size: 20px !important;
    }
    .herbano-article__main h4:not([class*="herbano-"]),
    .post-description.custom-description h4:not([class*="herbano-"]) {
        font-size: 18px !important;
    }
}

/* ============================================================
   Listen-Defaults im Artikel-Body
   Hyvä/Tailwind setzt list-style: none global — wir setzen zurück
   ============================================================ */

.herbano-article__main ul,
.post-description.custom-description ul {
    list-style: disc !important;
    padding-left: 1.5em !important;
    margin: 0 0 1em !important;
}

.herbano-article__main ol,
.post-description.custom-description ol {
    list-style: decimal !important;
    padding-left: 1.5em !important;
    margin: 0 0 1em !important;
}

.herbano-article__main li,
.post-description.custom-description li {
    margin-bottom: 0.4em !important;
    display: list-item !important;
}
