/* Herbano Ratgeber — Related Widgets */

/* ============================================================
   InlineRelated — kleiner Inline-Verweis mit Thumbnail
   ============================================================ */

.herbano-inlinerel {
    margin: var(--hb-sp-5, 24px) 0;
}

.herbano-inlinerel__link {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #e5f0eb;
    border: 1px solid rgba(70, 124, 72, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 200ms ease, border-color 200ms ease;
}

.herbano-inlinerel__link:hover {
    background: #d4e3d6;
    border-color: rgba(70, 124, 72, 0.5);
}

.herbano-inlinerel__thumb-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.herbano-inlinerel__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.herbano-inlinerel__eyebrow {
    display: block;
    font-family: var(--hb-f-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hb-accent, #467c48);
    margin-bottom: 4px;
}

.herbano-inlinerel__title {
    display: block;
    font-family: var(--hb-f-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hb-ink, #1a1a1a);
    margin: 0;
}

.herbano-inlinerel__arrow {
    flex-shrink: 0;
    color: var(--hb-accent, #467c48);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
    .herbano-inlinerel__link {
        gap: 12px;
        padding: 10px 12px;
    }
    .herbano-inlinerel__thumb-wrap {
        width: 60px;
        height: 60px;
    }
    .herbano-inlinerel__title {
        font-size: 14px;
    }
}

/* ============================================================
   RelatedSection — horizontaler Scroller mit Karten
   ============================================================ */

.herbano-relatedsection {
    margin: var(--hb-sp-6, 32px) 0;
}

.herbano-relatedsection__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: var(--hb-sp-4, 16px);
    padding-bottom: var(--hb-sp-3, 12px);
    border-bottom: 1px solid rgba(70, 124, 72, 0.18);
}

.herbano-relatedsection__head-text {
    flex: 1;
    min-width: 0;
}

.herbano-relatedsection__eyebrow {
    display: block;
    font-family: var(--hb-f-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hb-accent, #467c48);
    margin-bottom: 4px;
}

.herbano-relatedsection__title {
    font-family: var(--hb-f-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--hb-accent, #467c48);
    margin: 0 0 6px;
}

.herbano-relatedsection__subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: var(--hb-ink-3, #666);
    margin: 0;
}

.herbano-relatedsection__nav {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.herbano-relatedsection__nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(70, 124, 72, 0.3);
    background: #fff;
    border-radius: 50%;
    color: var(--hb-accent, #467c48);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, border-color 200ms ease;
}

.herbano-relatedsection__nav-btn:hover {
    background: var(--hb-mist, #e5f0eb);
    border-color: var(--hb-accent, #467c48);
}

.herbano-relatedsection__slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
}

.herbano-relatedsection__slider::-webkit-scrollbar {
    height: 6px;
}

.herbano-relatedsection__slider::-webkit-scrollbar-thumb {
    background: rgba(70, 124, 72, 0.25);
    border-radius: 3px;
}

.herbano-related-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 200ms ease;
}

.herbano-related-card:hover {
    transform: translateY(-3px);
}

.herbano-related-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: #f0f0f0;
}

.herbano-related-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms ease;
}

.herbano-related-card:hover .herbano-related-card__image {
    transform: scale(1.04);
}

.herbano-related-card__body {
    padding: 12px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.herbano-related-card__category {
    font-family: var(--hb-f-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hb-accent, #467c48);
}

.herbano-related-card__title {
    font-family: var(--hb-f-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hb-ink, #1a1a1a);
    margin: 0;
}

.herbano-related-card__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--hb-f-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hb-accent, #467c48);
    margin-top: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .herbano-relatedsection__header {
        flex-direction: column;
        gap: 8px;
    }
    .herbano-relatedsection__nav {
        align-self: flex-end;
    }
    .herbano-relatedsection__title {
        font-size: 20px;
    }
    .herbano-related-card {
        flex: 0 0 220px;
    }
}

/* ============================================================
   RelatedSection — Spacing-Tightening
   ============================================================ */

.herbano-relatedsection {
    margin: var(--hb-sp-5, 20px) 0;
}

.herbano-relatedsection__header {
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.herbano-relatedsection__eyebrow {
    margin-bottom: 2px;
}

.herbano-relatedsection__title {
    font-size: 22px;
    margin: 0 0 4px;
    line-height: 1.2;
}

.herbano-relatedsection__subtitle {
    font-size: 13px;
    line-height: 1.4;
}

.herbano-relatedsection__slider {
    padding: 4px 0 8px;
    gap: 12px;
}

.herbano-related-card__media {
    aspect-ratio: 16 / 11;
}

.herbano-related-card__body {
    padding: 10px 2px 4px;
    gap: 3px;
}

.herbano-related-card__category {
    font-size: 10px;
    letter-spacing: 0.06em;
}

.herbano-related-card__title {
    font-size: 14px;
    line-height: 1.25;
}

.herbano-related-card__more {
    font-size: 11px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .herbano-related-card {
        flex: 0 0 200px;
    }
}

/* Tighter Spacing + Weiterlesen-Bottom-Alignment */

.herbano-relatedsection__eyebrow {
    margin: 0 !important;
}

.herbano-relatedsection__title {
    margin: 2px 0 4px !important;
    line-height: 1.15 !important;
}

.herbano-relatedsection__subtitle {
    margin: 0 !important;
    line-height: 1.3 !important;
}

.herbano-related-card__body {
    flex: 1 !important;
    gap: 2px !important;
}

.herbano-related-card__category {
    margin: 0 !important;
}

.herbano-related-card__title {
    margin: 2px 0 0 !important;
    line-height: 1.15 !important;
}

.herbano-related-card__more {
    margin-top: auto !important;
    padding-top: 10px;
}

/* Mobile: Pfeile weg, Touch-Swipe reicht */
@media (max-width: 768px) {
    .herbano-relatedsection__nav {
        display: none;
    }
}
