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

   .herbano-article {
    max-width: var(--hb-container-read);
    margin: 0 auto;
    padding: 0 var(--hb-sp-5) var(--hb-sp-8);
}

.herbano-article__main {
    min-width: 0;
}

/* Inhaltsverzeichnis-Box oben im Lesefluss */
.herbano-article__main > .herbano-toc {
    margin-bottom: var(--hb-sp-6);
}

/* ============================================================
   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;
}

/* ============================================================
   TOC-Box gegen die Artikel-Body-Listenregeln schützen
   (das Inhaltsverzeichnis sitzt jetzt IN .herbano-article__main)
   → verhindert doppelte Nummerierung + Listen-Marker
   ============================================================ */
.herbano-article__main .herbano-toc ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.herbano-article__main .herbano-toc li {
    display: block !important;
    margin-bottom: 0 !important;
}

/* Kein „aktuelles Kapitel"-Highlight im statischen TOC (kein grüner Strich) */
.herbano-article__main .herbano-toc a.is-active {
    border-left-color: transparent !important;
    color: #3D3D3D !important;
    font-weight: 400 !important;
}
.herbano-article__main .herbano-toc a.is-active::before {
    color: #9AB99E !important;
}

/* ============================================================
   Redaktions-/Autorenbox (unter dem Inhaltsverzeichnis)
   ============================================================ */
.herbano-editorial {
    display: flex;
    align-items: flex-start;
    gap: var(--hb-sp-4);
    background: var(--hb-mist);
    border-radius: var(--hb-r-lg);
    padding: var(--hb-sp-5);
    margin-bottom: var(--hb-sp-6);
}
.herbano-editorial__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--hb-accent);
    overflow: hidden;
}
.herbano-editorial__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.herbano-editorial__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.herbano-editorial__name {
    font-family: var(--hb-f-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--hb-ink);
}
.herbano-editorial__role {
    font-family: var(--hb-f-body);
    font-size: var(--hb-fs-caption);
    font-weight: 600;
    color: var(--hb-accent);
}
.herbano-editorial__text {
    font-family: var(--hb-f-body);
    font-size: var(--hb-fs-small);
    line-height: var(--hb-lh-body);
    color: var(--hb-ink-3);
    margin: var(--hb-sp-2) 0 0;
}
