/* Ruhige Ratgeberstruktur: mobile Lesbarkeit für 50+, keine Textwände, Kicker → H1 → Lead → Orientierung → Lesetext → CTA. */
:root {
  --hb-ratgeber-ink: #17284d;
  --hb-ratgeber-muted: #526072;
  --hb-ratgeber-bordeaux: #a1012c;
  --hb-ratgeber-paper: #ffffff;
  --hb-ratgeber-sand: #f6f7fa;
  --hb-ratgeber-gold: #b59a54;
}

html.hb-ratgeber-standard-active {
  scroll-padding-top: 1rem;
}

@media (max-width: 900px) {
  html.hb-ratgeber-standard-active main h1,
  html.hb-ratgeber-standard-active #root h1:not(.seo-h1-fallback) {
    color: var(--hb-ratgeber-ink) !important;
    font-size: clamp(1.75rem, 7.2vw, 2.125rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.14 !important;
    margin-bottom: 1.15rem !important;
    max-width: 22ch !important;
    text-wrap: balance;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-intro {
    max-width: 44rem !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-lead {
    color: var(--hb-ratgeber-ink) !important;
    font-size: 1.125rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.58 !important;
    margin: 0 0 1.35rem !important;
    max-width: 36ch !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-lead strong {
    font-weight: 600 !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-orientation {
    background: var(--hb-ratgeber-sand) !important;
    border: 1px solid rgba(23, 40, 77, 0.10) !important;
    border-left: 3px solid var(--hb-ratgeber-gold) !important;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
    margin: 1.25rem 0 1.75rem !important;
    padding: 1.1rem 1.05rem !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-orientation p,
  html.hb-ratgeber-standard-active .hb-ratgeber-orientation li {
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.52 !important;
  }

  html.hb-ratgeber-standard-active main p,
  html.hb-ratgeber-standard-active #root main p {
    font-size: 1.125rem;
    line-height: 1.58;
  }

  html.hb-ratgeber-standard-active main h2,
  html.hb-ratgeber-standard-active #root main h2 {
    color: var(--hb-ratgeber-ink);
    font-size: clamp(1.48rem, 6vw, 1.8rem);
    font-weight: 600;
    line-height: 1.22;
    margin-top: 2.4rem;
    text-wrap: balance;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-table-wrap {
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(23, 40, 77, 0.10);
    border-radius: 0.7rem;
    margin: 1.4rem 0;
    overflow-x: auto;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-table-wrap table {
    font-size: 0.94rem !important;
    min-width: 34rem;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-table-wrap::after {
    color: var(--hb-ratgeber-muted);
    content: 'Tabelle bei Bedarf seitlich bewegen';
    display: block;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem 0.65rem;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-table-wrap--cards {
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-table-wrap--cards::after {
    content: '';
    display: none;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table {
    display: block !important;
    font-size: 1rem !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table tr {
    background: var(--hb-ratgeber-paper);
    border: 1px solid rgba(23, 40, 77, 0.12);
    border-left: 3px solid var(--hb-ratgeber-gold);
    border-radius: 0.7rem;
    display: grid;
    gap: 0;
    overflow: hidden;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table td {
    border: 0 !important;
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0.9rem !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table td + td {
    border-top: 1px solid rgba(23, 40, 77, 0.08) !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-comparison-table td::before {
    color: var(--hb-ratgeber-muted);
    content: attr(data-hb-label);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-reading-guide {
    align-items: flex-start;
    border-bottom: 1px solid rgba(23, 40, 77, 0.12);
    display: flex;
    gap: 0.55rem;
    margin: 1.25rem 1rem 1.6rem;
    overflow-x: auto;
    padding: 0 0 0.85rem;
    scroll-snap-type: x proximity;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-reading-guide-label {
    color: var(--hb-ratgeber-muted);
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 0.15rem 0.45rem 0;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-reading-guide a {
    background: var(--hb-ratgeber-sand);
    border: 1px solid rgba(23, 40, 77, 0.10);
    border-radius: 999px;
    color: var(--hb-ratgeber-ink) !important;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.55rem 0.75rem;
    scroll-snap-align: start;
    text-decoration: none;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-reading-guide a:focus-visible {
    outline: 3px solid var(--hb-ratgeber-bordeaux);
    outline-offset: 2px;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-seasonal-notice {
    box-shadow: none !important;
    inset: auto !important;
    margin: 0.9rem 1rem !important;
    max-height: none !important;
    position: relative !important;
    z-index: 2 !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-seasonal-backdrop {
    background: transparent !important;
    display: none !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-native-intro {
    background: transparent !important;
    display: block !important;
    margin: 2.25rem auto !important;
    max-width: 44rem !important;
    padding: 0 1.125rem !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-native-heading {
    color: var(--hb-ratgeber-ink) !important;
    font-size: clamp(1.7rem, 7vw, 2.05rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.16 !important;
    margin: 0 0 1rem !important;
    max-width: 19ch !important;
    text-wrap: balance;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-native-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block !important;
    margin: 0 !important;
    max-width: 36ch !important;
    padding: 0 !important;
  }

  html.hb-ratgeber-standard-active .hb-ratgeber-native-lead {
    color: var(--hb-ratgeber-ink) !important;
    font-family: inherit !important;
    font-size: 1.0625rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.58 !important;
    margin: 0 !important;
    max-width: 36ch !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.hb-ratgeber-standard-active *,
  html.hb-ratgeber-standard-active *::before,
  html.hb-ratgeber-standard-active *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
