/* =========================================================================
   antares Ratgeber – Ergänzungen zum Webflow-CSS (nur Präfix rg-)
   Farben/Fonts kommen aus dem Webflow-CSS (--blue, --orange, --text-dark …)
   ========================================================================= */
:root {
  --rg-blue: var(--blue, #357793);
  --rg-orange: var(--orange, #f5a201);
  --rg-text: var(--text-dark, #424242);
  --rg-muted: #5b6470;
  --rg-kicker: #9a5a00; /* dunkles Orange, Kontrast ≥ 4.5:1 */
  --rg-line: #e3e8ec;
  --rg-soft: var(--light-blue, #e7f1f5);
  --rg-warn-bg: #fff5e6;
  --rg-warn: #c2410c;
  --rg-radius: 14px;
  --rg-gap: 24px;
}

/* ---------- Lesetypografie (neue Artikel) ---------- */
.rg-article { padding-top: 48px; padding-bottom: 72px; }
.rg-prose { font-size: 1.125rem; color: var(--rg-text); }
.rg-prose .paragraph, .rg-prose p { font-size: 1.125rem; line-height: 1.7; margin: 0 0 1.15em; }
.rg-prose .headline-h2, .rg-prose h2 { font-size: 1.75rem; line-height: 1.25; margin: 2.6rem 0 .9rem; scroll-margin-top: 140px; }
.rg-prose > .headline-h2:first-child, .rg-prose > h2:first-child { margin-top: 0; }
.rg-prose .headline-h3, .rg-prose h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.9rem 0 .6rem; }
.rg-prose strong { color: #1f2a33; font-weight: 600; }
.rg-prose a { color: var(--rg-blue); text-decoration: underline; text-underline-offset: 2px; }
.rg-prose .rg-bullets, .rg-prose .rg-ordered { margin: 0 0 1.3em; }
.rg-prose .bullet-text { line-height: 1.6; }
.rg-prose .paragraph.quote { border-left: 3px solid var(--rg-orange); padding: .25rem 0 .25rem 1.1rem; margin: 1.6rem 0; font-size: 1.1rem; line-height: 1.6; }
.artikle-text-wrapper h2[id] { scroll-margin-top: 140px; }

.rg-meta { font-size: .9rem; color: var(--rg-muted); margin: 0 0 1.75rem; line-height: 1.5; }
.rg-meta a { color: inherit; text-decoration: underline; }

/* ---------- Boxen ---------- */
.rg-box { background: #fff; border: 1px solid var(--rg-line); border-left: 4px solid var(--rg-blue); border-radius: var(--rg-radius); padding: 1.4rem 1.6rem; margin: 0 0 2rem; }
.rg-box__title { font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-blue); margin-bottom: .6rem; }
.rg-box .paragraph, .rg-box p { line-height: 1.6; }
.rg-box > :last-child, .rg-box .rg-bullets:last-child { margin-bottom: 0; }
.rg-box--kurzantwort { border-left-color: var(--rg-orange); background: #fffaf0; }
.rg-box--kurzantwort .paragraph.big { font-size: 1.15rem; line-height: 1.6; margin: 0; }
.rg-box--warnung { background: var(--rg-warn-bg); border-color: #f6d3b8; border-left-color: var(--rg-warn); margin: 2rem 0; }
.rg-box--warnung .rg-box__title { color: var(--rg-warn); }
.rg-box--merke, .rg-box--info { background: var(--rg-soft); border-color: #cfe2ea; }

/* ---------- Inhaltsverzeichnis ---------- */
.rg-toc { border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: 1.2rem 1.6rem; margin: 0 0 2.5rem; background: #fff; }
.rg-toc__title { font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rg-muted); margin-bottom: .6rem; }
.rg-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; }
.rg-toc li { margin: 0 0 .45rem; break-inside: avoid; line-height: 1.4; }
.rg-toc a { color: var(--rg-blue); text-decoration: none; }
.rg-toc a:hover { text-decoration: underline; }
@media (max-width: 767px) { .rg-toc ol { columns: 1; } }

/* ---------- Listen, Tabellen ---------- */
.rg-bullets { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.rg-bullets li.bullet-list-item { margin-bottom: .55rem; }
.rg-ordered { padding-left: 1.4rem; margin-bottom: 1.5rem; line-height: 1.6; }
.rg-ordered li { margin-bottom: .45rem; }
.rg-table-wrap { overflow-x: auto; margin: 1.8rem 0; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); }
.rg-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.rg-table th, .rg-table td { border-bottom: 1px solid var(--rg-line); padding: .75rem 1rem; text-align: left; vertical-align: top; line-height: 1.5; }
.rg-table th { background: var(--rg-soft); font-weight: 600; }
.rg-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ, CTA, Quellen, Hinweis ---------- */
.rg-faq { margin-top: 3rem; }
.rg-faq .headline-h2 { margin-bottom: 1rem; }
.rg-faq__item { border-bottom: 1px solid var(--rg-line); }
.rg-faq__q { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 1.05rem 2rem 1.05rem 0; list-style: none; position: relative; line-height: 1.4; }
.rg-faq__q::-webkit-details-marker { display: none; }
.rg-faq__q::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.4rem; color: var(--rg-blue); }
.rg-faq__item[open] .rg-faq__q::after { content: "–"; }
.rg-faq__a { padding: 0 0 1.2rem; line-height: 1.65; }
.rg-cta { background: var(--rg-blue); color: #fff; border-radius: var(--rg-radius); padding: 2rem; margin: 3rem 0; }
.rg-cta__title { font-size: 1.4rem; font-weight: 600; margin-bottom: .5rem; }
.rg-cta .paragraph { color: #fff; line-height: 1.6; margin-bottom: 1.25rem; }
.rg-cta .button-std { display: inline-flex; width: auto; }
.rg-sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rg-line); }
.rg-sources .headline-h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.rg-sources .rg-ordered { font-size: .95rem; }
.rg-sources a { color: var(--rg-blue); word-break: break-word; }
.rg-hinweis { font-size: .875rem; color: var(--rg-muted); line-height: 1.55; margin: 2rem 0 2.5rem; }

/* ---------- Übersichten: Kopf, Filter, Karten ---------- */
.rg-listing { padding-top: 64px; padding-bottom: 80px; }
.rg-section-head { max-width: 760px; margin: 0 0 28px; }
.rg-section-head .small-title { margin-bottom: 12px; }
.rg-section-head .headline-h2 { margin-bottom: 12px; }
.rg-section-head .paragraph { line-height: 1.6; }
.rg-lead { line-height: 1.55 !important; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--rg-gap); }
.rg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.rg-card:hover { box-shadow: 0 10px 30px rgba(16, 40, 56, .10); transform: translateY(-2px); }
.rg-card__media { aspect-ratio: 16 / 10; background: var(--rg-soft); overflow: hidden; }
.rg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-card__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--rg-blue); font-weight: 600; padding: 1rem; text-align: center; }
.rg-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.rg-card__kicker { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rg-kicker); font-weight: 600; margin-bottom: 8px; }
.rg-card__title { font-size: 1.3rem; line-height: 1.3; font-weight: 600; color: var(--rg-blue); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rg-card__text { font-size: 1.0625rem; line-height: 1.55; color: var(--rg-text); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rg-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1rem; }
.rg-card__more { color: var(--rg-blue); font-weight: 600; font-size: 1.05rem; }
.rg-card__more::after { content: " →"; }
.rg-card__time { color: var(--rg-muted); font-size: .9rem; }
.rg-card[hidden] { display: none; }
.rg-cluster-text { max-width: 760px; margin-top: 48px; }

/* Weitere-Themen-Sektion (Webflow-Hülle) mit eigenem Grid */
section.bg-dark .rg-grid { margin-top: 8px; }

/* Teaser-Raster: gleiche Spaltenbreite (Brief 17)
   Webflow verwendet 1fr = minmax(auto,1fr); lange Wörter in H3 dehnen dann ihre Spalte.
   minmax(0,1fr) erzwingt gleiche Breiten unabhängig vom Inhalt.
   Breakpoints 991/767 px entsprechen den Webflow-Breakpoints im Export. */
.magazin-grid.ratgeber-detail-grid                      { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.magazin-grid.ratgeber-detail-grid._3-3                 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.magazin-grid.ratgeber-detail-grid._2-2                 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media screen and (max-width: 991px) {
  .magazin-grid.ratgeber-detail-grid,
  .magazin-grid.ratgeber-detail-grid._3-3               { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .magazin-grid.ratgeber-detail-grid,
  .magazin-grid.ratgeber-detail-grid._3-3,
  .magazin-grid.ratgeber-detail-grid._2-2               { grid-template-columns: minmax(0, 1fr); }
}
.ratgeber-detail-teaser h3                              { overflow-wrap: break-word; hyphens: auto; }
.ratgeber-detail-teaser .b2b-teaser-title-wrapper img   { object-fit: cover; width: 100%; height: 100%; }

/* Teaser-Liste (Platzhalter auf Webflow-Seiten, data-variant="liste") */
.rg-teaser-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 32px; margin: 1.5rem 0 2rem; }
.rg-teaser-item { border-top: 2px solid var(--rg-orange); padding-top: 14px; }
.rg-teaser-title { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
.rg-teaser-title a { color: var(--rg-blue); text-decoration: none; }
.rg-teaser-item .paragraph { line-height: 1.55; margin-bottom: 10px; }
.rg-more { font-weight: 600; color: var(--rg-blue); text-decoration: none; }
.rg-more::after { content: " →"; }

.rg-preview-banner { position: sticky; top: 0; z-index: 9999; background: var(--rg-warn); color: #fff; text-align: center; font-weight: 600; padding: .5rem; }

@media (max-width: 767px) {
  .rg-article { padding-top: 32px; }
  .rg-listing { padding-top: 40px; padding-bottom: 56px; }
  .rg-prose .headline-h2, .rg-prose h2 { font-size: 1.45rem; margin-top: 2.1rem; }
  .rg-box, .rg-toc { padding: 1.1rem 1.2rem; }
  .rg-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Bedienbarkeit für ältere, wenig technikaffine Menschen
   - große, beschriftete Schaltflächen statt kleiner Pills
   - Auswahlliste (Pulldown) auf dem Handy
   - deutliche Fokus-Rahmen, keine reinen Hover-Effekte, Mindestgröße 48 px
   ===================================================================== */
.rg-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 40px; }
.rg-topic { display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 18px 20px; background: #fff; border: 2px solid var(--rg-line);
  border-radius: var(--rg-radius); color: var(--rg-text); text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.rg-topic:hover { border-color: var(--rg-blue); }
.rg-topic__name { font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--rg-blue); }
.rg-topic__count { font-size: 1rem; color: var(--rg-text); }
.rg-topic__ex { font-size: .95rem; color: var(--rg-muted); line-height: 1.4; }
.rg-topic__check { display: inline-block; margin-right: .4rem; }
.rg-topic.is-active { background: var(--rg-blue); border-color: var(--rg-blue); }
.rg-topic.is-active .rg-topic__name, .rg-topic.is-active .rg-topic__count, .rg-topic.is-active .rg-topic__ex { color: #fff; }

.rg-topic-select { display: none; margin: 0 0 32px; }
.rg-topic-select label { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; color: var(--rg-text); }
.rg-topic-select select { width: 100%; min-height: 56px; font: inherit; font-size: 1.125rem; padding: 0 48px 0 16px; border: 2px solid var(--rg-blue); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23357793' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none; -webkit-appearance: none; color: var(--rg-text); }

.rg-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; scroll-margin-top: 130px; }
.rg-results-title { margin: 0; outline: none; }
.rg-reset { min-height: 48px; padding: 0 22px; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--rg-blue); background: #fff; border: 2px solid var(--rg-blue); border-radius: 10px; cursor: pointer; }
.rg-reset:hover { background: var(--rg-soft); }
.rg-reset::before { content: "× "; }

.rg-back { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.05rem; font-weight: 600; color: var(--rg-blue); text-decoration: none; margin: 0 0 12px; }
.rg-back:hover { text-decoration: underline; }
.rg-back-bottom { margin: 2.5rem 0 0; }
.rg-more-topics { margin-top: 72px; }
.rg-more-topics .headline-h2 { margin-bottom: 20px; }
.rg-listing .rg-back + .rg-results-title { margin: 8px 0 24px; }

.rg-print { margin-left: .25rem; padding: 0; border: 0; background: none; font: inherit; color: var(--rg-blue); text-decoration: underline; cursor: pointer; }

/* Fokus für Tastatur deutlich sichtbar */
.rg-topic:focus-visible, .rg-card:focus-visible, .rg-reset:focus-visible, .rg-back:focus-visible, .rg-topic-select select:focus-visible,
.rg-toc a:focus-visible, .rg-faq__q:focus-visible, .rg-print:focus-visible { outline: 3px solid var(--rg-orange); outline-offset: 3px; }

/* Handy: Pulldown statt Schaltflächen (nur wenn JavaScript läuft – sonst bleiben die Links sichtbar) */
@media (max-width: 767px) {
  .w-mod-js .rg-topics { display: none; }
  .w-mod-js .rg-topic-select { display: block; }
  .rg-topic { min-height: 0; }
  .rg-results-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Filterleiste (Brief 09): statische Links, keine JS-Filterung ---------- */
.rg-filter { margin: 0 0 32px; }
.rg-filter__row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rg-filter__label { font-size: .9rem; font-weight: 600; color: var(--rg-muted); white-space: nowrap; min-height: 48px; display: flex; align-items: center; }
.rg-filter__pills { display: flex; flex-wrap: wrap; gap: 8px; }

.rg-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 0 16px; font-size: 1.0625rem; font-weight: 600; color: var(--rg-blue);
  background: #fff; border: 2px solid var(--rg-line); border-radius: 100px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.rg-pill:hover { border-color: var(--rg-blue); }
.rg-pill.is-active, .rg-pill[aria-current="page"] { background: var(--rg-blue); border-color: var(--rg-blue); color: #fff; }
.rg-pill__count { font-size: .875rem; font-weight: 400; opacity: .85; }
.rg-pill:focus-visible { outline: 3px solid var(--rg-orange); outline-offset: 3px; }

.rg-filter__mobile { display: none; }
.rg-filter__mobile-btn { display: flex; align-items: center; min-height: 56px; padding: 0 20px; font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--rg-blue);
  background: #fff; border: 2px solid var(--rg-blue); border-radius: 14px; cursor: pointer; list-style: none; width: 100%; }
.rg-filter__mobile-btn::-webkit-details-marker { display: none; }
.rg-filter__mobile-panel { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.rg-pill--sub { margin-left: 20px; font-size: .975rem; border-color: var(--rg-line); }

/* E-E-A-T Über-Sektion (Center) */
.rg-ueber { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rg-line); }
.rg-ueber .headline-h2 { margin-bottom: .75rem; }
.rg-ueber .paragraph { max-width: 680px; margin-bottom: 32px; line-height: 1.65; }

@media (max-width: 767px) {
  .rg-filter__row { display: none; }
  .rg-filter__mobile { display: block; }
}

/* Druckansicht für Artikel */
@media print {
  .uui-navbar08_component, section.bg-dark, section:has(.e-rezept-wrapper-new), section:has(.certified-grid), .footer, .rg-print, .rg-back, .rg-toc, .rg-cta, .ap-kontakt-link-block, .rg-preview-banner, .sub-sub-page-image-wrapper { display: none !important; }
  .rg-prose, .rg-prose p { font-size: 12pt; }
  .rg-faq__item { display: block; } .rg-faq__item > * { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
