/* Ratgeber-Übersicht /wissen/ und Themenwelt-Seiten (Design „03 Ratgeber-Übersicht“, Theme 1.24.0). Nur auf diesen Seiten geladen. */

.bb-rg {
    --rg-page: #0A0C10;
    --rg-band: #0E1117;
    --rg-card: #141821;
    --rg-tile: #12161E;
    --rg-border: #222833;
    --rg-line: #1C212A;
    --rg-field: #12151C;
    --rg-field-border: #262C37;
    --rg-noimg: #191E27;
    --rg-hover: #1A1F29;
    --rg-text: #F3F4F6;
    --rg-text-2: #D5D9E0;
    --rg-text-3: #AEB5C1;
    --rg-text-4: #8A93A2;
    --rg-red: #E5262D;
    --rg-red-light: #FF4A50;
    --rg-gutter: 32px;
    background: var(--rg-page);
    color: var(--rg-text-3);
    font-size: 16px;
    line-height: 1.6;
}
.bb-rg-shell { width: 100%; max-width: calc(1240px + 2 * var(--rg-gutter)); margin-inline: auto; padding-inline: var(--rg-gutter); }
.bb-rg a { text-decoration: none; }
.bb-rg ul, .bb-rg ol { list-style: none; margin: 0; padding: 0; }
.bb-rg :where(a, button, input):focus-visible { outline: 2px solid var(--rg-red-light); outline-offset: 2px; }

.bb-rg-h2 { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 36px; line-height: 1.08; color: var(--rg-text); }
.bb-rg-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-text-4); }
.bb-rg-section-head { margin-bottom: 28px; }
.bb-rg-section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.bb-rg-section-head__text { max-width: 420px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--rg-text-3); }

/* Chips (Beliebt, Guide-Spokes, weitere Themenwelten) */
.bb-rg-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border: 1px solid var(--rg-field-border); border-radius: 999px; background: var(--rg-band); color: var(--rg-text-2); font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: border-color .15s, color .15s, background-color .15s; }
.bb-rg-chip:hover { border-color: #3A4250; color: var(--rg-text); background: var(--rg-hover); }
.bb-rg-chip--sm { min-height: 30px; padding: 5px 12px; font-size: 13px; }

/* ---------- Kopf ---------- */
.bb-rg-head { padding: 40px 0 44px; border-bottom: 1px solid var(--rg-line); }
.bb-rg-head--compact { padding-bottom: 36px; }
.bb-rg-crumbs { margin-bottom: 20px; font-size: 13px; line-height: 1.4; color: var(--rg-text-4); }
.bb-rg-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.bb-rg-crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.bb-rg-crumbs a { color: var(--rg-text-4); }
.bb-rg-crumbs a:hover { color: var(--rg-text); text-decoration: underline; text-underline-offset: 3px; }
.bb-rg-crumbs [aria-current] { color: var(--rg-text-3); }
.bb-rg-crumbs__sep { color: #5B6472; }
.bb-rg-head__title { max-width: 820px; margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 56px; line-height: 1.02; text-transform: uppercase; color: var(--rg-text); }
.bb-rg-head__intro { max-width: 680px; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--rg-text-3); }

.bb-rg-search { position: relative; display: flex; align-items: center; max-width: 720px; height: 60px; margin-top: 28px; padding: 0 6px 0 52px; border: 1px solid var(--rg-field-border); border-radius: 14px; background: var(--rg-field); transition: border-color .15s, box-shadow .15s; }
.bb-rg-search:focus-within { border-color: #4A5260; box-shadow: 0 0 0 3px rgba(229, 38, 45, .18); }
.bb-rg-search__icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--rg-text-4); pointer-events: none; }
.bb-rg-search__input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--rg-text); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.bb-rg-search__input::placeholder { color: #7E8796; opacity: 1; text-overflow: ellipsis; }
.bb-rg-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bb-rg .bb-rg-search__input:focus-visible { outline: none; }
.bb-rg-search__button { flex: none; height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--rg-red); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s; }
.bb-rg-search__button:hover { background: #F0353C; }

.bb-rg-popular { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.bb-rg-popular__label { flex: none; font-size: 13px; color: var(--rg-text-4); }
.bb-rg-popular__list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Themenwelten ---------- */
.bb-rg-band { background: var(--rg-band); }
.bb-rg-topics { padding: 56px 0 60px; border-bottom: 1px solid var(--rg-line); }
.bb-rg-topics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Weniger als 4 Themenwelten: Kacheln füllen die Breite (keine Lücke rechts). */
.bb-rg-topics__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-rg-topics__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bb-rg-topics__grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.bb-rg-tile { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--rg-border); border-radius: 14px; background: var(--rg-tile); }
.bb-rg-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bb-rg-tile__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #3A2226; border-radius: 12px; background: #1E1316; color: var(--rg-red-light); }
.bb-rg-tile__svg { width: 24px; height: 24px; }
.bb-rg-tile__count { display: inline-flex; align-items: center; gap: .3em; min-height: 26px; padding: 3px 10px; border: 1px solid var(--rg-border); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--rg-text-3); white-space: nowrap; }
.bb-rg-tile__title { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; }
.bb-rg-tile__title a { color: var(--rg-text); }
.bb-rg-tile__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--rg-red-light); text-underline-offset: 4px; }
.bb-rg-tile__desc { display: -webkit-box; margin: 8px 0 0; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--rg-text-3); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.bb-rg-tile__links { margin: 16px -10px 0; padding-top: 12px; border-top: 1px solid var(--rg-line); }
.bb-rg-tile__links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--rg-text-2); font-size: 14px; font-weight: 500; line-height: 1.3; transition: background-color .15s, color .15s; }
.bb-rg-tile__links a:hover { background: var(--rg-hover); color: var(--rg-text); }
.bb-rg-tile__arrow { flex: none; width: 16px; height: 16px; color: #5B6472; }
.bb-rg-tile__links a:hover .bb-rg-tile__arrow { color: var(--rg-red-light); }
.bb-rg-tile__all { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: auto; padding-top: 14px; color: var(--rg-red-light); font-size: 14px; font-weight: 700; }
.bb-rg-tile__all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Große Themen-Guides ---------- */
.bb-rg-guides { padding: 60px 0 8px; }
.bb-rg-guides__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bb-rg-guide { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rg-border); border-radius: 14px; background: var(--rg-card); }
.bb-rg-guide__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rg-noimg); }
.bb-rg-guide__image, .bb-rg-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-rg-guide__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.bb-rg-guide__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-red-light); }
.bb-rg-guide__title { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; }
.bb-rg-guide__title a { color: var(--rg-text); }
.bb-rg-guide__title a:hover { text-decoration: underline; text-decoration-color: var(--rg-red-light); text-underline-offset: 4px; }
.bb-rg-guide__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Neueste Ratgeber ---------- */
.bb-rg-latest { padding: 60px 0 72px; }
.bb-rg--paged .bb-rg-latest { padding-top: 44px; }
.bb-rg-latest__title { margin-bottom: 28px; }
.bb-rg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bb-rg-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rg-border); border-radius: 14px; background: var(--rg-card); transition: border-color .15s; }
.bb-rg-card:hover { border-color: #323A47; }
.bb-rg-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rg-noimg); }
.bb-rg-noimg { display: block; width: 100%; height: 100%; background: var(--rg-noimg); }
.bb-rg-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.bb-rg-card__topic { align-self: flex-start; margin: 0 0 8px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-red-light); }
.bb-rg-card__topic:hover { text-decoration: underline; text-underline-offset: 3px; }
.bb-rg-card__title { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-size: 25px; font-weight: 700; line-height: 1.12; }
.bb-rg-card__title a { color: var(--rg-text); }
.bb-rg-card__title a:hover { text-decoration: underline; text-decoration-color: var(--rg-red-light); text-underline-offset: 4px; }
.bb-rg-card__excerpt { display: -webkit-box; margin: 10px 0 0; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--rg-text-3); -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.bb-rg-card .bb-rg-card__title a:focus-visible { outline-offset: 3px; }

.bb-rg-more { display: flex; justify-content: center; margin-top: 36px; }
.bb-rg-more__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 1px solid #2C3340; border-radius: 999px; background: transparent; color: var(--rg-text); font-size: 15px; font-weight: 700; transition: border-color .15s, background-color .15s; }
.bb-rg-more__button:hover { border-color: #46505F; background: var(--rg-hover); }
.bb-rg-more__icon { width: 18px; height: 18px; }
.bb-rg-more__button.is-loading { opacity: .7; cursor: progress; }

/* Seitennavigation */
.bb-rg-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.bb-rg-pager__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.bb-rg-pager__page, .bb-rg-pager__edge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--rg-field-border); border-radius: 10px; background: var(--rg-card); color: var(--rg-text-2); font-size: 15px; font-weight: 600; line-height: 1; transition: border-color .15s, background-color .15s; }
.bb-rg-pager__page { padding: 0 6px; }
a.bb-rg-pager__page:hover, a.bb-rg-pager__edge:hover { border-color: #46505F; background: var(--rg-hover); color: var(--rg-text); }
.bb-rg-pager__page[aria-current="page"] { border-color: var(--rg-red); background: var(--rg-red); color: #fff; }
.bb-rg-pager__edge.is-disabled { opacity: .4; }
.bb-rg-pager__gap { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 24px; height: 44px; padding-bottom: 12px; color: var(--rg-text-4); }

/* ---------- Abschluss ---------- */
.bb-rg-about { padding: 56px 0 72px; border-top: 1px solid var(--rg-line); }
.bb-rg-about__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 48px; }
.bb-rg-about__title { margin: 0; font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif; font-size: 28px; font-weight: 700; line-height: 1.12; color: var(--rg-text); }
.bb-rg-about__text { font-size: 15px; line-height: 1.7; color: var(--rg-text-3); }
.bb-rg-about__text p { margin: 0 0 14px; }
.bb-rg-about__text > :last-child { margin-bottom: 0; }
.bb-rg-about__text a { color: var(--rg-text); text-decoration: underline; text-decoration-color: rgba(255, 74, 80, .7); text-underline-offset: 3px; }
.bb-rg-about--topic .bb-rg-about__text { max-width: 820px; }
.bb-rg-about--topic h2, .bb-rg-about--topic h3 { color: var(--rg-text); }
.bb-rg-others { padding: 0 0 56px; }
.bb-rg-others__title { margin-bottom: 18px; font-size: 28px; }
.bb-rg-others__list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .bb-rg-topics__grid, .bb-rg-topics__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bb-rg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bb-rg-guides__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bb-rg-head__title { font-size: 46px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
    .bb-rg { --rg-gutter: 20px; }
    .bb-rg-h2 { font-size: 28px; }
    .bb-rg-section-head { margin-bottom: 20px; }
    .bb-rg-section-head--split { display: block; }
    .bb-rg-section-head__text { margin-top: 8px; }

    .bb-rg-head { padding: 24px 0 32px; }
    .bb-rg-crumbs { margin-bottom: 14px; }
    .bb-rg-crumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }
    .bb-rg-head__title { font-size: 34px; }
    .bb-rg-head__intro { margin-top: 12px; font-size: 16px; }
    .bb-rg-search { height: 52px; margin-top: 22px; padding-right: 12px; padding-left: 46px; border-radius: 12px; }
    .bb-rg-search__icon { left: 16px; }
    .bb-rg-search__button { display: none; }

    .bb-rg-popular { margin-top: 16px; margin-inline: calc(-1 * var(--rg-gutter)); padding-inline: var(--rg-gutter); overflow-x: auto; scrollbar-width: none; }
    .bb-rg-popular::-webkit-scrollbar { display: none; }
    .bb-rg-popular__list { flex-wrap: nowrap; }
    .bb-rg-popular__list li:last-child { padding-right: var(--rg-gutter); }
    .bb-rg-chip { min-height: 44px; padding-inline: 16px; }
    .bb-rg-chip--sm { min-height: 44px; }

    .bb-rg-topics { padding: 40px 0 44px; }
    .bb-rg-topics__grid, .bb-rg-topics__grid--3, .bb-rg-topics__grid--2 { grid-template-columns: 1fr; gap: 12px; }
    .bb-rg-tile { padding: 18px; }
    .bb-rg-tile__top { margin-bottom: 14px; }
    .bb-rg-tile__title a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; }
    .bb-rg-tile__count-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .bb-rg-tile__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding-top: 14px; }
    .bb-rg-tile__links a { min-height: 44px; padding: 6px 14px; border: 1px solid var(--rg-field-border); border-radius: 999px; background: var(--rg-band); font-weight: 600; }
    .bb-rg-tile__arrow { display: none; }
    .bb-rg-tile__all { min-height: 44px; padding-top: 10px; }

    .bb-rg-guides { padding: 40px 0 0; }
    .bb-rg-guides__row { display: flex; gap: 12px; margin-inline: calc(-1 * var(--rg-gutter)); padding: 0 var(--rg-gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rg-gutter); scrollbar-width: none; }
    .bb-rg-guides__row::-webkit-scrollbar { display: none; }
    .bb-rg-guide { flex: 0 0 290px; scroll-snap-align: start; }
    .bb-rg-guide__body { padding: 16px 18px 18px; }
    .bb-rg-guide__title { font-size: 22px; }
    .bb-rg-guide__chips { display: none; }

    .bb-rg-latest { padding: 40px 0 52px; }
    .bb-rg-latest__title { margin-bottom: 18px; }
    .bb-rg-cards { grid-template-columns: 1fr; gap: 12px; }
    .bb-rg-card { flex-direction: row; align-items: flex-start; gap: 14px; min-height: 96px; padding: 12px; border-radius: 12px; }
    .bb-rg-card__media { flex: 0 0 96px; width: 96px; height: 72px; aspect-ratio: auto; overflow: hidden; border-radius: 8px; }
    .bb-rg-card__body { padding: 0; }
    /* Ziel 44 px hoch, Layout bleibt kompakt (Polster mit negativem Rand). */
    .bb-rg-card__topic { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -10px; }
    .bb-rg-card__title { display: -webkit-box; overflow: hidden; font-size: 19px; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
    .bb-rg-card__title a::after { content: ""; position: absolute; inset: 0; }
    .bb-rg-card__topic { position: relative; z-index: 1; }
    .bb-rg-card__excerpt { display: none; }

    .bb-rg-more { margin-top: 24px; }
    .bb-rg-more__button { width: 100%; }

    .bb-rg-pager { flex-wrap: nowrap; gap: 4px; margin-top: 28px; }
    .bb-rg-pager__list { flex-wrap: nowrap; gap: 4px; }
    .bb-rg-pager__page { min-width: 40px; }
    .bb-rg-pager__item.is-far { display: none; }
    .bb-rg-pager__item.is-far-gap { display: inline-flex; align-items: flex-end; justify-content: center; min-width: 14px; height: 44px; padding-bottom: 12px; color: var(--rg-text-4); }
    .bb-rg-pager__item.is-far-gap::before { content: "…"; }
    .bb-rg-pager__item.is-far-gap > a { display: none; }
    .bb-rg-pager__edge { flex: none; padding: 0; min-width: 40px; }
    .bb-rg-pager__edge-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .bb-rg-pager__gap { min-width: 14px; }

    .bb-rg-about { padding: 40px 0 52px; }
    .bb-rg-about__grid { grid-template-columns: 1fr; }
    .bb-rg-about__title { font-size: 26px; }
    .bb-rg-others__title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .bb-rg * { transition: none !important; }
}
